diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-17 20:09:44 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-17 20:11:32 -0600 |
commit | fc69e4a0bb4e3d2fdcb2ffef0f3211f8c347ed15 (patch) | |
tree | 4314b320d1a393074be9c620e88603663ea2e9f7 /config | |
parent | b068a9466c33b464a2215051ce4b1ca980f4f4eb (diff) |
allow admin to define ambassador delay (in minutes) with `AMBASSADOR_DELAY` env var, default to 10
Diffstat (limited to 'config')
-rw-r--r-- | config/sidekiq.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sidekiq.yml b/config/sidekiq.yml index 51bd85c50..20ea95aad 100644 --- a/config/sidekiq.yml +++ b/config/sidekiq.yml @@ -32,7 +32,7 @@ every: '1h' class: Scheduler::WerewolfScheduler ambassador_scheduler: - every: '5m' + every: '<%= ENV['AMBASSADOR_DELAY'] || 10 %>m' class: Scheduler::AmbassadorScheduler media_cleanup_scheduler: cron: '<%= Random.rand(0..59) %> <%= Random.rand(3..5) %> * * *' |