Fix return for cancelling job

This commit is contained in:
Mark Felder 2024-07-17 12:51:38 -04:00
parent d124d8645e
commit 1e0d5934d5

View file

@ -20,7 +20,7 @@ def perform(%Job{args: %{"op" => "backfill", "url" => _url} = args}) do
{:error, type} {:error, type}
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] -> when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
:cancel {:cancel, type}
error -> error ->
{:error, error} {:error, error}