diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2015-12-12 23:06:23 -0200 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2015-12-14 14:17:20 -0200 |
commit | 51ef4a2fed382833833f15afae1da3f98bfa5031 (patch) | |
tree | 00162d3dd3babadd7b137d2a3672fedc799cf7cb /config/initializers/sidekiq.rb | |
parent | a5e449571bb941d65d33569a0f0db575a5b3d399 (diff) | |
download | gitlab-ce-feature/sidekiq-cron-config.tar.gz |
Sidekiq-cron configuration moved to gitlab.ymlfeature/sidekiq-cron-config
Diffstat (limited to 'config/initializers/sidekiq.rb')
-rw-r--r-- | config/initializers/sidekiq.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 2e3a71912ef..b42b718a7db 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -18,11 +18,8 @@ Sidekiq.configure_server do |config| chain.add Gitlab::SidekiqMiddleware::MemoryKiller if ENV['SIDEKIQ_MEMORY_KILLER_MAX_RSS'] end - # Sidekiq-cron: load recurring jobs from schedule.yml - schedule_file = 'config/schedule.yml' - if File.exists?(schedule_file) - Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) - end + # Sidekiq-cron: load recurring jobs from gitlab.yml + Sidekiq::Cron::Job.load_from_hash! Gitlab.config.cron_jobs # Database pool should be at least `sidekiq_concurrency` + 2 # For more info, see: https://github.com/mperham/sidekiq/blob/master/4.0-Upgrade.md |