Keep longer history of oban jobs

This commit is contained in:
Uku Taht 2021-04-12 14:50:52 +03:00
parent 83a759c60a
commit 0d71ec3acd

View File

@ -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)