Class: Sidekiq::Routing::Auto::Router
- Inherits:
-
Object
- Object
- Sidekiq::Routing::Auto::Router
- Defined in:
- lib/sidekiq/routing/auto/router.rb
Constant Summary collapse
- QUEUE_HIERARCHY =
%w[ within_5_seconds within_1_minute within_5_minutes within_1_hour ].freeze
Class Method Summary collapse
Class Method Details
.next_queue_for(current_queue) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/sidekiq/routing/auto/router.rb', line 13 def self.next_queue_for(current_queue) index = QUEUE_HIERARCHY.index(current_queue) return nil unless index QUEUE_HIERARCHY[index + 1] end |
.sla_queues ⇒ Object
20 21 22 |
# File 'lib/sidekiq/routing/auto/router.rb', line 20 def self.sla_queues QUEUE_HIERARCHY end |