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

18 lines
416 B
Ruby
Raw Permalink 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
2016-06-10 14:21:42 +01:00
2016-06-11 17:03:15 +01:00
if ENV["PROFILE"]
require "objspace"
ObjectSpace.trace_object_allocations_start
Sidekiq.logger.info "allocations tracing enabled"
2019-02-10 13:44:58 +00:00
end