Add Oban Pruner plugin to clean up completed jobs after 24 hours
This commit is contained in:
parent
ef9aac60c0
commit
1008ce7fd2
1 changed files with 1 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue