Merge remote-tracking branch 'origin/phnt/oban-digest-queue' into paradedb-search-backend

This commit is contained in:
Mark Felder 2026-04-01 19:05:31 +00:00
commit 5271876a5f
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1 @@
Fix the daily email digest job which was not executing

View file

@ -7,7 +7,7 @@ defmodule Pleroma.Workers.Cron.DigestEmailsWorker do
The worker to send digest emails.
"""
use Oban.Worker, queue: "mailer"
use Oban.Worker, queue: :background
alias Pleroma.Config
alias Pleroma.Emails

View file

@ -0,0 +1,9 @@
defmodule Pleroma.Repo.Migrations.CleanupStaleDigestEmailJobs do
use Ecto.Migration
def up do
execute(
"DELETE from oban_jobs WHERE queue = 'mailer' AND worker = 'Pleroma.Workers.Cron.DigestEmailsWorker'"
)
end
end