Class: Sidekiq::Queue
- Inherits:
-
Object
- Object
- Sidekiq::Queue
- Extended by:
- Forwardable, LimitFetch::Singleton
- Defined in:
- lib/sidekiq/extensions/queue.rb
Instance Method Summary collapse
Methods included from LimitFetch::Singleton
Instance Method Details
#lock ⇒ Object
13 14 15 |
# File 'lib/sidekiq/extensions/queue.rb', line 13 def lock @lock ||= mode::Semaphore.new name end |
#mode ⇒ Object
17 18 19 |
# File 'lib/sidekiq/extensions/queue.rb', line 17 def mode Sidekiq.[:global] ? LimitFetch::Global : LimitFetch::Local end |