mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 03:17:53 -05:00
d3c5afbb80
remove minutely() schedule that was very inefficient
15 lines
398 B
Ruby
15 lines
398 B
Ruby
sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
|
|
|
|
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
|
|
|
|
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
|
|
Sidekiq.logger.level = Logger::WARN
|