discourse/config/initializers/sidekiq.rb

16 lines
398 B
Ruby
Raw Normal View History

sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
2013-02-05 14:16:51 -05:00
2013-08-07 13:25:05 -04:00
Sidekiq.configure_server do |config|
config.redis = sidekiq_redis
Sidetiq::Clock.start!
end
Sidetiq.configure do |config|
# we only check for new jobs once every 5 seconds
# to cut down on cpu cost
config.resolution = 5
end
2013-05-29 12:36:15 -04:00
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
2013-05-29 12:36:15 -04:00
Sidekiq.logger.level = Logger::WARN