Increase timeout for background, remote fetcher, and user refresh jobs
This commit is contained in:
parent
d62a9afed3
commit
fdeb8616e8
0
changelog.d/oban-timeouts.skip
Normal file
0
changelog.d/oban-timeouts.skip
Normal file
@ -453,7 +453,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||||||
) do
|
) do
|
||||||
orig_object_ap_id = updated_object["id"]
|
orig_object_ap_id = updated_object["id"]
|
||||||
orig_object = Object.get_by_ap_id(orig_object_ap_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 =
|
updated_object =
|
||||||
if meta[:local] do
|
if meta[:local] do
|
||||||
|
@ -40,5 +40,5 @@ defmodule Pleroma.Workers.BackgroundWorker do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def timeout(_job), do: :timer.seconds(5)
|
def timeout(_job), do: :timer.seconds(15)
|
||||||
end
|
end
|
||||||
|
@ -31,5 +31,5 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def timeout(_job), do: :timer.seconds(10)
|
def timeout(_job), do: :timer.seconds(15)
|
||||||
end
|
end
|
||||||
|
@ -13,5 +13,5 @@ defmodule Pleroma.Workers.UserRefreshWorker do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
def timeout(_job), do: :timer.seconds(5)
|
def timeout(_job), do: :timer.seconds(15)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user