Skip to content

Commit f4437c9

Browse files
committed
simplify
1 parent 7782bf4 commit f4437c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/resque/plugins/round_robin/round_robin.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ def should_work_on_queue? queuename
3434
# Ive been fighting to get this to round-robining system to work
3535
# for five hours now. If you hate this, you can fix it.
3636
#
37-
unless ['replays', 'replays-high'].include?(queuename.to_s) || queuename.to_s.index('replay').nil?
38-
if Resque.size("python") > 2
39-
return false
40-
end
37+
if Resque.size("python") > 2
38+
return false
4139
end
4240

4341
return true if @queues.include? '*' # workers with QUEUES=* are special and are not subject to queue depth setting
@@ -60,6 +58,7 @@ def should_round_robin?
6058

6159
def reserve_with_round_robin
6260
if not should_round_robin?
61+
print "reserving without round robin"
6362
return reserve_without_round_robin
6463
end
6564

0 commit comments

Comments
 (0)