Remove redundant sidekiq configuration (#20807)

This commit is contained in:
Meredith 2024-03-29 11:47:40 -04:00 committed by GitHub
parent 09705dab68
commit fe0d9437e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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