Class: Qless::JobReservers::ShuffledRoundRobin

Inherits:
RoundRobin
  • Object
show all
Defined in:
lib/qless/job_reservers/shuffled_round_robin.rb

Constant Summary collapse

TYPE_DESCRIPTION =
"shuffled round robin"

Instance Attribute Summary

Attributes inherited from RoundRobin

#queues

Instance Method Summary collapse

Methods inherited from RoundRobin

#description, #reserve

Constructor Details

#initialize(queues) ⇒ ShuffledRoundRobin

Returns a new instance of ShuffledRoundRobin.



6
7
8
# File 'lib/qless/job_reservers/shuffled_round_robin.rb', line 6

def initialize(queues)
  super(queues.shuffle)
end