10 lines
295 B
Ruby
10 lines
295 B
Ruby
Redis.exists_returns_integer = true
|
|
if ENV['RUN_SIDEKIQ_CRON']=='yes'
|
|
schedule_file = 'config/schedule.yml'
|
|
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) if File.exist?(schedule_file)
|
|
|
|
Sidekiq.configure_server do | config|
|
|
config[:cron_poll_interval] = 1
|
|
end
|
|
end
|