Add Oban Pruner plugin to clean up completed jobs after 24 hours

This commit is contained in:
Graham McIntire 2026-03-29 13:35:04 -05:00
parent ef9aac60c0
commit 1008ce7fd2
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

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