Set Repo.transaction/2 timeout to infinity. Fixes pleroma.user delete_activities mix task.

This commit is contained in:
Mark Felder 2021-04-19 15:43:17 -05:00
parent b050adb5e2
commit 0effcd2cfe

View file

@ -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}