projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29c1178
)
oban warning
author
Alexander Strizhakov
<alex.strizhakov@gmail.com>
Mon, 7 Sep 2020 17:21:32 +0000
(20:21 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Thu, 10 Sep 2020 18:51:30 +0000
(21:51 +0300)
lib/pleroma/config/oban.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/config/oban.ex
b/lib/pleroma/config/oban.ex
index 81758c93d67726f47a5153c2b51e4e5948c43853..9f601b1a3692d5e8d1cce18faa10550df883d4ff 100644
(file)
--- a/
lib/pleroma/config/oban.ex
+++ b/
lib/pleroma/config/oban.ex
@@
-5,7
+5,11
@@
defmodule Pleroma.Config.Oban do
oban_config = Pleroma.Config.get(Oban)
crontab =
- [Pleroma.Workers.Cron.StatsWorker, Pleroma.Workers.Cron.ClearOauthTokenWorker]
+ [
+ Pleroma.Workers.Cron.StatsWorker,
+ Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker,
+ Pleroma.Workers.Cron.ClearOauthTokenWorker
+ ]
|> Enum.reduce(oban_config[:crontab], fn removed_worker, acc ->
with acc when is_list(acc) <- acc,
setting when is_tuple(setting) <-