[#1149] Added Oban job for "activity_expiration". Merged remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job-queue
# Conflicts: # config/config.exs
This commit is contained in:
commit
e890ea7e82
76 changed files with 2689 additions and 551 deletions
|
|
@ -69,4 +69,11 @@ defmodule Pleroma.Workers.BackgroundWorker do
|
|||
activity = Activity.get_by_id(activity_id)
|
||||
Pleroma.Web.RichMedia.Helpers.perform(:fetch, activity)
|
||||
end
|
||||
|
||||
def perform(
|
||||
%{"op" => "activity_expiration", "activity_expiration_id" => activity_expiration_id},
|
||||
_job
|
||||
) do
|
||||
Pleroma.ActivityExpirationWorker.perform(:execute, activity_expiration_id)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue