Add Oban.Plugins.Pruner to clear done jobs

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-01-27 16:43:34 +01:00
parent 43c694be72
commit d0e28c6308
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 1 deletions

View File

@ -285,7 +285,8 @@ config :mobilizon, Oban,
# To be activated in Mobilizon 1.2
# {"@hourly", Mobilizon.Service.Workers.CleanOrphanMediaWorker, queue: :background},
{"@hourly", Mobilizon.Service.Workers.CleanUnconfirmedUsersWorker, queue: :background}
]}
]},
{Oban.Plugins.Pruner, max_age: 300}
]
config :mobilizon, :rich_media,