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 @@ def perform(%Job{args: %{"op" => "delete", "backup_id" => backup_id}}) 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