oban warning
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 7 Sep 2020 17:21:32 +0000 (20:21 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 10 Sep 2020 18:51:30 +0000 (21:51 +0300)
lib/pleroma/config/oban.ex

index 81758c93d67726f47a5153c2b51e4e5948c43853..9f601b1a3692d5e8d1cce18faa10550df883d4ff 100644 (file)
@@ -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) <-