mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 08:06:55 +00:00
Limit backup jobs to 5 minutes
This commit is contained in:
parent
e5a738d465
commit
ece063586b
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ defmodule Pleroma.Workers.BackupWorker do
|
|||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :infinity
|
||||
def timeout(_job), do: :timer.minutes(5)
|
||||
|
||||
defp has_email?(user) do
|
||||
not is_nil(user.email) and user.email != ""
|
||||
|
|
Loading…
Reference in a new issue