Skip to content

Commit 576fbd1

Browse files
committed
Merge branch 'fair-round-robin' of https://github.com/veenstra/resque-round-robin
Conflicts: lib/resque/plugins/round_robin/version.rb
2 parents 82e590e + 7690038 commit 576fbd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/resque/plugins/round_robin/round_robin.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def reserve_with_round_robin
4646
log! "Found job on #{queue}"
4747
return job
4848
end
49+
# Start the next search at the queue after the one from which we pick a job.
50+
@n += 1
4951
end
5052

5153
nil
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Resque
22
module Plugins
33
module RoundRobin
4-
VERSION = "0.1.3"
4+
VERSION = "0.1.4"
55
end
66
end
77
end

0 commit comments

Comments
 (0)