Skip to content

Commit

Permalink
Hardcode the cronjob exection on sunday (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjponz authored Oct 27, 2021
1 parent d4ee134 commit 3a6f28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ config :postoffice, Oban,
{Oban.Plugins.Pruner, max_age: String.to_integer(System.get_env("OBAN_PRUNER_MAX_AGE", "60"))},
{Oban.Plugins.Cron,
crontab: [
{System.get_env("CLEAN_MESSAGES_CRONTAB"), Postoffice.Workers.CleanMessages},
{"0 12 * * 0", Postoffice.Workers.CleanMessages},
]}
],
queues: [default: 10, http: 100, pubsub: 15]
Expand Down

0 comments on commit 3a6f28e

Please sign in to comment.