Publisher jobs will not retry if the error received is a 400
This commit is contained in:
parent
776b069a04
commit
e509519db4
1
changelog.d/oban-cancel-badreq.change
Normal file
1
changelog.d/oban-cancel-badreq.change
Normal file
@ -0,0 +1 @@
|
||||
Publisher jobs will not retry if the error received is a 400
|
@ -123,6 +123,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
||||
Logger.error("Publisher failed to inbox #{inbox} with status #{code}")
|
||||
|
||||
case response do
|
||||
%{status: 400} -> {:cancel, :bad_request}
|
||||
%{status: 403} -> {:cancel, :forbidden}
|
||||
%{status: 404} -> {:cancel, :not_found}
|
||||
%{status: 410} -> {:cancel, :not_found}
|
||||
|
Loading…
Reference in New Issue
Block a user