File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/resque/plugins/round_robin Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments