We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17bddf0 commit 1fa03b9Copy full SHA for 1fa03b9
lib/resque/plugins/round_robin/round_robin.rb
@@ -10,7 +10,11 @@ def rotated_queues
10
@n ||= 0
11
@n += 1
12
rot_queues = queues
13
- rot_queues.rotate(@n % rot_queues.size)
+ if rot_queues.size > 0
14
+ rot_queues.rotate(@n % rot_queues.size)
15
+ else
16
+ rot_queues
17
+ end
18
end
19
20
def reserve_with_round_robin
lib/resque/plugins/round_robin/version.rb
@@ -1,7 +1,7 @@
1
module Resque
2
module Plugins
3
module RoundRobin
4
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
5
6
7
0 commit comments