demarches-normaliennes/config/initializers/sidekiq.rb
2017-04-04 16:59:39 +02:00

6 lines
189 B
Ruby

Sidekiq.configure_server do |config|
Sidekiq::Logging.logger = Rails.logger
schedule_file = "config/schedule.yml"
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)
end