Class: Sidekiq::Queue

Inherits:
Object
  • Object
show all
Extended by:
Forwardable, LimitFetch::Singleton
Defined in:
lib/sidekiq/extensions/queue.rb

Instance Method Summary collapse

Methods included from LimitFetch::Singleton

extended, new

Instance Method Details

#lockObject



13
14
15
# File 'lib/sidekiq/extensions/queue.rb', line 13

def lock
  @lock ||= mode::Semaphore.new name
end

#modeObject



17
18
19
# File 'lib/sidekiq/extensions/queue.rb', line 17

def mode
  Sidekiq.options[:global] ? LimitFetch::Global : LimitFetch::Local
end