RemoteFetcherWorker: Make sure {:error, _} is returned on failure

Otherwise jobs are considered a success.
This commit is contained in:
Haelwenn (lanodan) Monnier 2024-02-23 01:57:43 +01:00
parent f0468697cd
commit 6af6a9704d
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

View File

@ -22,8 +22,11 @@ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
{:error, :allowed_depth} -> {:error, :allowed_depth} ->
{:discard, :allowed_depth} {:discard, :allowed_depth}
_ -> {:error, _} = e ->
:error e
e ->
{:error, e}
end end
end end