1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Add warning about poll_interval with large installations

This commit is contained in:
Mike Perham 2014-04-01 20:29:32 -07:00
parent 580f6fcbec
commit d50ea42c16

View file

@ -117,6 +117,9 @@ module Sidekiq
Sidekiq::Logging.logger = log
end
# The default poll interval is 15 seconds. This should generally be set to
# (Sidekiq process count * 5). So if you have a dozen Sidekiq processes, set
# poll_interval to 60.
def self.poll_interval=(interval)
self.options[:poll_interval] = interval
end