Define missing Oban timeouts
This commit is contained in:
parent
0ea63d824e
commit
1e8d1904e6
1
changelog.d/oban-timeouts.change
Normal file
1
changelog.d/oban-timeouts.change
Normal file
@ -0,0 +1 @@
|
||||
Ensure all Oban jobs have timeouts defined
|
@ -58,4 +58,7 @@ defmodule Pleroma.Workers.Cron.DigestEmailsWorker do
|
||||
|
||||
User.touch_last_digest_emailed_at(user)
|
||||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
end
|
||||
|
@ -60,4 +60,7 @@ defmodule Pleroma.Workers.Cron.NewUsersDigestWorker do
|
||||
|
||||
:ok
|
||||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
end
|
||||
|
@ -16,4 +16,7 @@ defmodule Pleroma.Workers.RichMediaWorker do
|
||||
def perform(%Job{args: %{"op" => "backfill", "url" => _url} = args}) do
|
||||
Backfill.run(args)
|
||||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
end
|
||||
|
@ -20,4 +20,7 @@ defmodule Pleroma.Workers.SearchIndexingWorker do
|
||||
|
||||
search_module.remove_from_index(object)
|
||||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
end
|
||||
|
@ -11,4 +11,7 @@ defmodule Pleroma.Workers.UserRefreshWorker do
|
||||
def perform(%Job{args: %{"ap_id" => ap_id}}) do
|
||||
User.fetch_by_ap_id(ap_id)
|
||||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user