Skip to content

Commit 7658284

Browse files
committed
a bit more logging, just in case
1 parent 2763666 commit 7658284

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/resque/plugins/round_robin/round_robin.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def should_work_on_queue? queuename
3030
max = DEFAULT_QUEUE_DEPTH
3131
max = ENV["RESQUE_QUEUE_DEPTH"].to_i if ENV["RESQUE_QUEUE_DEPTH"].present?
3232
return true if max == 0 # 0 means no limiting
33-
return true if queue_depth(queuename) < max
33+
cur_depth = queue_depth(queuename)
34+
log! "queue #{queuename} depth = #{cur_depth} max = #{max}"
35+
return true if cur_depth < max
3436
false
3537
end
3638

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.1"
4+
VERSION = "0.1.2"
55
end
66
end
77
end

0 commit comments

Comments
 (0)