From 1008ce7fd24ce32b6e107f6f511c9ed545dbc128 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 29 Mar 2026 13:35:04 -0500 Subject: [PATCH] Add Oban Pruner plugin to clean up completed jobs after 24 hours --- config/config.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.exs b/config/config.exs index 6ac80d9c..bc9535c3 100644 --- a/config/config.exs +++ b/config/config.exs @@ -46,6 +46,7 @@ config :microwaveprop, Oban, repo: Microwaveprop.Repo, queues: [solar: 1, weather: 3], plugins: [ + {Oban.Plugins.Pruner, max_age: 3600 * 24}, {Oban.Plugins.Cron, crontab: [ {"0 8 * * *", Microwaveprop.Workers.SolarIndexWorker}