Module: Sidekiq::Manager::InitLimitFetch

Included in:
Sidekiq::Manager
Defined in:
lib/sidekiq/extensions/manager.rb

Instance Method Summary collapse

Instance Method Details

#initialize(options = {}) ⇒ Object



3
4
5
6
# File 'lib/sidekiq/extensions/manager.rb', line 3

def initialize(options={})
  options[:fetch] = Sidekiq::LimitFetch
  super
end

#startObject



8
9
10
11
12
13
# File 'lib/sidekiq/extensions/manager.rb', line 8

def start
  # In sidekiq 6.5.0 the variable @options has been renamed to @config
  Sidekiq::LimitFetch::Queues.start @options || @config
  Sidekiq::LimitFetch::Global::Monitor.start!
  super
end