rosa-build/config/initializers/1_sidekiq.rb

12 lines
275 B
Ruby
Raw Normal View History

2016-05-28 19:21:02 +01:00
require 'sidekiq/scheduler'
Kiqit.config.enabled = true
Sidekiq.configure_server do |config|
config.on(:startup) do
Sidekiq.schedule = YAML
.load_file(File.expand_path('../../../config/schedule.yml', __FILE__))
Sidekiq::Scheduler.reload_schedule!
end
end