Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Keep longer history of oban jobs

Uku Taht0d71ec3acda7
diff --git a/config/runtime.exs b/config/runtime.exs
index 57cdfeec77..e1dc8c1eec 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)