Skip to content

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

Use correct pruning syntax

Uku Taht8ba21d24708b
diff --git a/config/runtime.exs b/config/runtime.exs
index ce3896c9b1..d7a333552a 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -212,7 +212,7 @@ if config_env() == :prod && !disable_cron do
config :plausible, Oban,
# Keep 30 days history
- plugins: [{Oban.Plugins.Pruner, max_age: 2_592_000}],
+ prune: {:maxage, 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)