Increase retetion of completed oban jobs
This commit is contained in:
+2
-2
@@ -35,11 +35,11 @@ config :music_library, ErrorTracker.ErrorNotifier,
|
|||||||
mailer: MusicLibrary.Mailer,
|
mailer: MusicLibrary.Mailer,
|
||||||
base_url: "https://music-library.claudio-ortolina.org"
|
base_url: "https://music-library.claudio-ortolina.org"
|
||||||
|
|
||||||
twelve_hours_in_seconds = 12 * 60 * 60
|
seven_days_in_seconds = 7 * 24 * 60 * 60
|
||||||
|
|
||||||
config :music_library, Oban,
|
config :music_library, Oban,
|
||||||
plugins: [
|
plugins: [
|
||||||
{Oban.Plugins.Pruner, max_age: twelve_hours_in_seconds},
|
{Oban.Plugins.Pruner, max_age: seven_days_in_seconds},
|
||||||
{Oban.Plugins.Reindexer, schedule: "@weekly"},
|
{Oban.Plugins.Reindexer, schedule: "@weekly"},
|
||||||
{Oban.Plugins.Cron,
|
{Oban.Plugins.Cron,
|
||||||
timezone: "Europe/London",
|
timezone: "Europe/London",
|
||||||
|
|||||||
Reference in New Issue
Block a user