Add activity expiration worker
This is a worker that runs every minute and deletes expired activities. It's based heavily on the scheduled activities worker.
This commit is contained in:
parent
666514194a
commit
378f5f0fbe
5 changed files with 90 additions and 0 deletions
|
|
@ -115,6 +115,10 @@ defmodule Pleroma.Application do
|
|||
%{
|
||||
id: Pleroma.ScheduledActivityWorker,
|
||||
start: {Pleroma.ScheduledActivityWorker, :start_link, []}
|
||||
},
|
||||
%{
|
||||
id: Pleroma.ActivityExpirationWorker,
|
||||
start: {Pleroma.ActivityExpirationWorker, :start_link, []}
|
||||
}
|
||||
] ++
|
||||
hackney_pool_children() ++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue