Increase task timeout in Refresher to 60 seconds
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
74eeaccdc6
commit
3f32b3409f
@ -10,6 +10,8 @@ defmodule Mobilizon.Federation.ActivityPub.Refresher do
|
|||||||
alias Mobilizon.Federation.ActivityPub.{Fetcher, Relay, Transmogrifier, Utils}
|
alias Mobilizon.Federation.ActivityPub.{Fetcher, Relay, Transmogrifier, Utils}
|
||||||
require Logger
|
require Logger
|
||||||
|
|
||||||
|
@collection_element_task_processing_time 60_000
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Refresh a remote profile
|
Refresh a remote profile
|
||||||
"""
|
"""
|
||||||
@ -158,7 +160,7 @@ defmodule Mobilizon.Federation.ActivityPub.Refresher do
|
|||||||
|
|
||||||
items
|
items
|
||||||
|> Enum.map(fn item -> Task.async(fn -> handling_element(item) end) end)
|
|> 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")
|
Logger.debug("Finished processing a collection")
|
||||||
:ok
|
:ok
|
||||||
|
Loading…
Reference in New Issue
Block a user