mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
Cancel remote fetch jobs for deleted objects
This commit is contained in:
parent
4ff22a409a
commit
132036f951
|
@ -18,6 +18,9 @@ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
||||||
{:error, reason = "Object fetch has been denied"} ->
|
{:error, reason = "Object fetch has been denied"} ->
|
||||||
{:cancel, reason}
|
{:cancel, reason}
|
||||||
|
|
||||||
|
{:error, reason = "Object has been deleted"} ->
|
||||||
|
{:cancel, reason}
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
:error
|
:error
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue