Cancel remote fetch jobs for deleted objects
This commit is contained in:
parent
67dd81e825
commit
c6b38441f1
|
@ -18,6 +18,9 @@ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
|||
{:error, reason = "Object fetch has been denied"} ->
|
||||
{:cancel, reason}
|
||||
|
||||
{:error, reason = "Object has been deleted"} ->
|
||||
{:cancel, reason}
|
||||
|
||||
_ ->
|
||||
:error
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue