From 0d71ec3acda72b9913c37594bbc74c00c641db30 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Mon, 12 Apr 2021 14:50:52 +0300 Subject: [PATCH] Keep longer history of oban jobs --- config/runtime.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/runtime.exs b/config/runtime.exs index 57cdfeec7..e1dc8c1ee 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -201,6 +201,8 @@ if config_env() == :prod && !disable_cron do ] config :plausible, Oban, + # Keep 30 days history + plugins: [{Oban.Plugins.Pruner, max_age: 2_592_000}], repo: Plausible.Repo, queues: if(is_selfhost, do: base_queues, else: base_queues ++ extra_queues), crontab: if(is_selfhost, do: base_cron, else: base_cron ++ extra_cron)