Limit backup jobs to 5 minutes
This commit is contained in:
parent
e5a738d465
commit
ece063586b
@ -32,7 +32,7 @@ defmodule Pleroma.Workers.BackupWorker do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def timeout(_job), do: :infinity
|
def timeout(_job), do: :timer.minutes(5)
|
||||||
|
|
||||||
defp has_email?(user) do
|
defp has_email?(user) do
|
||||||
not is_nil(user.email) and user.email != ""
|
not is_nil(user.email) and user.email != ""
|
||||||
|
Loading…
Reference in New Issue
Block a user