Limit backup jobs to 5 minutes

This commit is contained in:
Mark Felder 2024-06-24 16:36:43 -04:00
parent e5a738d465
commit ece063586b

View file

@ -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 != ""