Remove redundant sidekiq configuration (#20807)
This commit is contained in:
parent
09705dab68
commit
fe0d9437e2
1 changed files with 0 additions and 5 deletions
|
|
@ -20,7 +20,6 @@ module Sidekiq
|
|||
end
|
||||
|
||||
Sidekiq.configure_server do |config|
|
||||
schedule_file = "config/schedule.yml"
|
||||
# @mstruve/@sre: sidekiq-cron still uses the removed poll_interval
|
||||
# to determine how often to poll for jobs so we should manually set it
|
||||
# https://github.com/ondrejbartas/sidekiq-cron/issues/254
|
||||
|
|
@ -28,10 +27,6 @@ Sidekiq.configure_server do |config|
|
|||
# every 30 seconds which the gem defaults to
|
||||
config[:poll_interval] = 10
|
||||
|
||||
if File.exist?(schedule_file)
|
||||
Sidekiq::Cron::Job.load_from_hash!(YAML.load_file(schedule_file))
|
||||
end
|
||||
|
||||
sidekiq_url = ApplicationConfig["REDIS_SIDEKIQ_URL"] || ApplicationConfig["REDIS_URL"]
|
||||
# On Heroku this configuration is overridden and Sidekiq will point at the redis
|
||||
# instance given by the ENV variable REDIS_PROVIDER
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue