projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check if object->data is array when looking up attachment objects to delete
[akkoma]
/
lib
/
pleroma
/
workers
/
scheduled_activity_worker.ex
diff --git
a/lib/pleroma/workers/scheduled_activity_worker.ex
b/lib/pleroma/workers/scheduled_activity_worker.ex
index 4094411ae37f16206140ca7a19b1bad609ed5b98..ca7d53af1e82f6f6a4967eb9dbb5200a25e1b134 100644
(file)
--- a/
lib/pleroma/workers/scheduled_activity_worker.ex
+++ b/
lib/pleroma/workers/scheduled_activity_worker.ex
@@
-3,13
+3,10
@@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.ScheduledActivityWorker do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.ScheduledActivityWorker do
- # Note: `max_attempts` is intended to be overridden in `new/2` call
- use Oban.Worker,
- queue: "scheduled_activities",
- max_attempts: 1
+ use Pleroma.Workers.WorkerHelper, queue: "scheduled_activities"
@impl Oban.Worker
def perform(%{"op" => "execute", "activity_id" => activity_id}, _job) do
@impl Oban.Worker
def perform(%{"op" => "execute", "activity_id" => activity_id}, _job) do
- Pleroma.
ScheduledActivityWorker
.perform(:execute, activity_id)
+ Pleroma.
Daemons.ScheduledActivityDaemon
.perform(:execute, activity_id)
end
end
end
end