logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: fdeb8616e8452d78060fb41622688b7143687058
parent d62a9afed3fe08aeaf9d2d9f0ca79736a1f24578
Author: Mark Felder <feld@feld.me>
Date:   Sat, 20 Jul 2024 22:00:34 -0400

Increase timeout for background, remote fetcher, and user refresh jobs

Diffstat:

Achangelog.d/oban-timeouts.skip0
Mlib/pleroma/web/activity_pub/side_effects.ex2+-
Mlib/pleroma/workers/background_worker.ex2+-
Mlib/pleroma/workers/remote_fetcher_worker.ex2+-
Mlib/pleroma/workers/user_refresh_worker.ex2+-
5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/changelog.d/oban-timeouts.skip b/changelog.d/oban-timeouts.skip diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex @@ -453,7 +453,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do ) 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 diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex @@ -40,5 +40,5 @@ defmodule Pleroma.Workers.BackgroundWorker do end @impl Oban.Worker - def timeout(_job), do: :timer.seconds(5) + def timeout(_job), do: :timer.seconds(15) end diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex @@ -31,5 +31,5 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do end @impl Oban.Worker - def timeout(_job), do: :timer.seconds(10) + def timeout(_job), do: :timer.seconds(15) end diff --git a/lib/pleroma/workers/user_refresh_worker.ex b/lib/pleroma/workers/user_refresh_worker.ex @@ -13,5 +13,5 @@ defmodule Pleroma.Workers.UserRefreshWorker do end @impl Oban.Worker - def timeout(_job), do: :timer.seconds(5) + def timeout(_job), do: :timer.seconds(15) end