kulesa-sidekiq 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Sidekiq
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
@@ -76,6 +76,10 @@ module Sidekiq
76
76
  end
77
77
  end
78
78
 
79
+ def backlog
80
+ queues.map {|name, size| size }.inject(0) {|memo, val| memo + val }
81
+ end
82
+
79
83
  def retries_with_score(score)
80
84
  Sidekiq.redis do |conn|
81
85
  results = conn.zrangebyscore('retry', score, score)
@@ -5,7 +5,7 @@
5
5
  p Failed: #{failed}
6
6
  p Busy Workers: #{workers.size}
7
7
  p Retries Pending: #{retry_count}
8
- p Queue Backlog: #{queues.values.inject(0){|memo, val| memo + val}}
8
+ p Queue Backlog: #{backlog}
9
9
 
10
10
  .tabbable
11
11
  ul.nav.nav-tabs
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kulesa-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis