Increase timeout for background, remote fetcher, and user refresh jobs
This commit is contained in:
parent
d62a9afed3
commit
fdeb8616e8
5 changed files with 4 additions and 4 deletions
0
changelog.d/oban-timeouts.skip
Normal file
0
changelog.d/oban-timeouts.skip
Normal file
|
@ -453,7 +453,7 @@ defp handle_update_object(
|
|||
) do
|
||||
orig_object_ap_id = updated_object["id"]
|
||||
orig_object = Object.get_by_ap_id(orig_object_ap_id)
|
||||
orig_object_data = orig_object.data
|
||||
orig_object_data = Map.get(orig_object, :data)
|
||||
|
||||
updated_object =
|
||||
if meta[:local] do
|
||||
|
|
|
@ -40,5 +40,5 @@ def perform(%Job{args: %{"op" => "verify_fields_links", "user_id" => user_id}})
|
|||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
def timeout(_job), do: :timer.seconds(15)
|
||||
end
|
||||
|
|
|
@ -31,5 +31,5 @@ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
|||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(10)
|
||||
def timeout(_job), do: :timer.seconds(15)
|
||||
end
|
||||
|
|
|
@ -13,5 +13,5 @@ def perform(%Job{args: %{"ap_id" => ap_id}}) do
|
|||
end
|
||||
|
||||
@impl Oban.Worker
|
||||
def timeout(_job), do: :timer.seconds(5)
|
||||
def timeout(_job), do: :timer.seconds(15)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue