Skip to content

Commit 766d636

Browse files
committed
yay more hax
1 parent 23799d2 commit 766d636

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/resque/plugins/round_robin/round_robin.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ 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-
if queuename != 'replay' && !queuename.to_s.index('replay').nil?
37+
if queuename.to_s != 'replay' && !queuename.to_s.index('replay').nil?
3838
if Resque.size("python") > 2
3939
return false
4040
end
@@ -56,11 +56,6 @@ def reserve_with_round_robin
5656

5757
qs = rotated_queues
5858
qs.each do |queue|
59-
60-
if queue.to_s.index("replay")
61-
62-
end
63-
6459
log! "Checking #{queue}"
6560
if should_work_on_queue?(queue) && job = Resque::Job.reserve(queue)
6661
log! "Found job on #{queue}"

0 commit comments

Comments
 (0)