Explicitly handle the GET and HEAD errors
This commit is contained in:
parent
1e0d5934d5
commit
f753bd3380
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ def perform(%Job{args: %{"op" => "backfill", "url" => _url} = args}) do
|
|||
when type in [:invalid_metadata, :body_too_large, :content_type, :validate] ->
|
||||
{:cancel, type}
|
||||
|
||||
{:error, type}
|
||||
when type in [:get, :head] ->
|
||||
{:error, type}
|
||||
|
||||
error ->
|
||||
{:error, error}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue