Merge branch 'tusooa/oban-common-pipeline' into 'develop'
Stop oban from retrying if validating errors occur when processing incoming data See merge request pleroma/pleroma!3844
This commit is contained in:
parent
fd46f83d2d
commit
22b72cd6b8
3 changed files with 32 additions and 2 deletions
|
|
@ -13,6 +13,9 @@ defmodule Pleroma.Workers.ReceiverWorker do
|
|||
{:ok, res}
|
||||
else
|
||||
{:error, :origin_containment_failed} -> {:cancel, :origin_containment_failed}
|
||||
{:error, :already_present} -> {:cancel, :already_present}
|
||||
{:error, {:validate_object, reason}} -> {:cancel, reason}
|
||||
{:error, {:error, {:validate, reason}}} -> {:cancel, reason}
|
||||
{:error, {:reject, reason}} -> {:cancel, reason}
|
||||
e -> e
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue