Module: Sidekiq::Priority
- Defined in:
- lib/sidekiq/priority.rb,
lib/sidekiq/priority/version.rb,
lib/sidekiq/priority/server/fetch.rb
Defined Under Namespace
Modules: Server
Constant Summary collapse
- PRIORITIES =
[:high, nil, :low]
- VERSION =
'0.0.2'
Class Method Summary collapse
- .priorities ⇒ Object
- .priorities=(priorities) ⇒ Object
- .queue_with_priority(queue, priority) ⇒ Object
Class Method Details
.priorities ⇒ Object
13 14 15 |
# File 'lib/sidekiq/priority.rb', line 13 def self.priorities @priorities ||= PRIORITIES.dup end |
.priorities=(priorities) ⇒ Object
17 18 19 |
# File 'lib/sidekiq/priority.rb', line 17 def self.priorities=(priorities) @priorities = priorities end |
.queue_with_priority(queue, priority) ⇒ Object
21 22 23 |
# File 'lib/sidekiq/priority.rb', line 21 def self.queue_with_priority(queue, priority) priority.nil? ? queue : "#{queue}_#{priority}" end |