lib/sidekiq.rb in sidekiq-3.1.3 vs lib/sidekiq.rb in sidekiq-3.1.4

- old
+ new

@@ -116,13 +116,11 @@ def self.logger=(log) 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. + # See sidekiq/scheduled.rb for an in-depth explanation of this value def self.poll_interval=(interval) self.options[:poll_interval] = interval end # Register a proc to handle any error which occurs within the Sidekiq process. @@ -147,23 +145,9 @@ def self.on(event, &block) raise ArgumentError, "Symbols only please: #{event}" if !event.is_a?(Symbol) raise ArgumentError, "Invalid event name: #{event}" if !options[:lifecycle_events].keys.include?(event) options[:lifecycle_events][event] << block end - - BANNER = %q{ s - ss - sss sss ss - s sss s ssss sss ____ _ _ _ _ - s sssss ssss / ___|(_) __| | ___| | _(_) __ _ - s sss \___ \| |/ _` |/ _ \ |/ / |/ _` | - s sssss s ___) | | (_| | __/ <| | (_| | - ss s s |____/|_|\__,_|\___|_|\_\_|\__, | - s s s |_| - s s - sss - sss } - end require 'sidekiq/extensions/class_methods' require 'sidekiq/extensions/action_mailer' require 'sidekiq/extensions/active_record'