2013-03-25 22:26:13 +08:00
|
|
|
sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2013-08-08 01:25:05 +08:00
|
|
|
Sidekiq.configure_server do |config|
|
|
|
|
config.redis = sidekiq_redis
|
|
|
|
Sidetiq::Clock.start!
|
|
|
|
end
|
|
|
|
|
2013-09-02 15:14:41 +08:00
|
|
|
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-30 00:36:15 +08:00
|
|
|
|
2013-09-02 15:14:41 +08:00
|
|
|
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
|
2013-05-30 00:36:15 +08:00
|
|
|
Sidekiq.logger.level = Logger::WARN
|