Set Repo.transaction/2 timeout to infinity. Fixes pleroma.user delete_activities mix task.
This commit is contained in:
parent
b050adb5e2
commit
0effcd2cfe
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue