demarches-normaliennes/config/initializers/sidekiq.rb

7 lines
189 B
Ruby
Raw Normal View History

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