From 3f32b3409f59f6b618abef06b05a37fa2114c923 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 20 Apr 2022 18:47:31 +0200 Subject: [PATCH] Increase task timeout in Refresher to 60 seconds Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/refresher.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/federation/activity_pub/refresher.ex b/lib/federation/activity_pub/refresher.ex index 4a8fc8c66..c85549a10 100644 --- a/lib/federation/activity_pub/refresher.ex +++ b/lib/federation/activity_pub/refresher.ex @@ -10,6 +10,8 @@ defmodule Mobilizon.Federation.ActivityPub.Refresher do alias Mobilizon.Federation.ActivityPub.{Fetcher, Relay, Transmogrifier, Utils} require Logger + @collection_element_task_processing_time 60_000 + @doc """ Refresh a remote profile """ @@ -158,7 +160,7 @@ defmodule Mobilizon.Federation.ActivityPub.Refresher do items |> Enum.map(fn item -> Task.async(fn -> handling_element(item) end) end) - |> Task.await_many() + |> Task.await_many(@collection_element_task_processing_time) Logger.debug("Finished processing a collection") :ok