From: Mark Felder Date: Mon, 19 Apr 2021 20:43:17 +0000 (-0500) Subject: Set Repo.transaction/2 timeout to infinity. Fixes pleroma.user delete_activities... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0effcd2cfed36baec1d960b64c901da7e56710a8;p=akkoma Set Repo.transaction/2 timeout to infinity. Fixes pleroma.user delete_activities mix task. --- diff --git a/lib/pleroma/web/activity_pub/pipeline.ex b/lib/pleroma/web/activity_pub/pipeline.ex index 377eccb92..400823094 100644 --- a/lib/pleroma/web/activity_pub/pipeline.ex +++ b/lib/pleroma/web/activity_pub/pipeline.ex @@ -24,7 +24,7 @@ defmodule Pleroma.Web.ActivityPub.Pipeline do @spec common_pipeline(map(), keyword()) :: {:ok, Activity.t() | Object.t(), keyword()} | {:error, any()} def common_pipeline(object, meta) do - case Repo.transaction(fn -> do_common_pipeline(object, meta) end) do + case Repo.transaction(fn -> do_common_pipeline(object, meta) end, timeout: :infinity) do {:ok, {:ok, activity, meta}} -> @side_effects.handle_after_transaction(meta) {:ok, activity, meta}