Explicitly handle the GET and HEAD errors

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

View file

@ -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