mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
reduce sidetiq frequency
remove minutely() schedule that was very inefficient
This commit is contained in:
@@ -5,6 +5,11 @@ Sidekiq.configure_server do |config|
|
||||
Sidetiq::Clock.start!
|
||||
end
|
||||
|
||||
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user