Merge pull request 'DigestEmailsWorker: Change Oban queue to "background"' (#7865) from phnt/oban-digest-queue into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7865
This commit is contained in:
feld 2026-04-01 19:08:40 +00:00
commit a3404e91bc
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. The worker to send digest emails.
""" """
use Oban.Worker, queue: "mailer" use Oban.Worker, queue: :background
alias Pleroma.Config alias Pleroma.Config
alias Pleroma.Emails 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