mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-14 04:52:17 +00:00
PollWorker jobs will not retry if the activity no longer exists.
This commit is contained in:
parent
e509519db4
commit
b8503f1ad4
2 changed files with 4 additions and 0 deletions
1
changelog.d/oban-cancel-poll-result.change
Normal file
1
changelog.d/oban-cancel-poll-result.change
Normal file
|
@ -0,0 +1 @@
|
|||
PollWorker jobs will not retry if the activity no longer exists.
|
|
@ -17,6 +17,9 @@ defmodule Pleroma.Workers.PollWorker do
|
|||
with %Activity{} = activity <- find_poll_activity(activity_id),
|
||||
{:ok, notifications} <- Notification.create_poll_notifications(activity) do
|
||||
Notification.stream(notifications)
|
||||
else
|
||||
{:error, :poll_activity_not_found} = e -> {:cancel, e}
|
||||
e -> {:error, e}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue