discourse/config/initializers/sidekiq.rb
2013-11-05 15:43:48 -05:00

14 lines
374 B
Ruby

sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
Sidekiq.configure_server do |config|
config.redis = sidekiq_redis
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
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
Sidekiq.logger.level = Logger::WARN