Sha256: 50fbf74dd88bb94af233612a6d308fbf9d37f04d4f09502a0480f8b85348bc69

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

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

    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
  end

  prepend InitLimitFetch
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-limit_fetch-4.3.2 lib/sidekiq/extensions/manager.rb
sidekiq-limit_fetch-4.3.1 lib/sidekiq/extensions/manager.rb
sidekiq-limit_fetch-4.3.0 lib/sidekiq/extensions/manager.rb
sidekiq-limit_fetch-4.2.0 lib/sidekiq/extensions/manager.rb