Module: Sidekiq::Throttled::Patches::Queue

Defined in:
lib/sidekiq/throttled/patches/queue.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply!Object


11
12
13
14
# File 'lib/sidekiq/throttled/patches/queue.rb', line 11

def self.apply!
  require "sidekiq/api"
  ::Sidekiq::Queue.send(:prepend, self)
end

Instance Method Details

#paused?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/sidekiq/throttled/patches/queue.rb', line 7

def paused?
  QueuesPauser.instance.paused? name
end