hookshot 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/hookshot.rb CHANGED
@@ -50,6 +50,15 @@ class Hookshot
50
50
  [nfailures.to_i, failed_id]
51
51
  end
52
52
 
53
+ def queue_stats
54
+ pending, delayed, failures = redis.pipelined do
55
+ redis.llen NEW_JOBS_LIST
56
+ redis.zcard DELAYED_SET
57
+ redis.llen FAILURES_LIST
58
+ end
59
+ { pending: pending, delayed: delayed, failures: failures }
60
+ end
61
+
53
62
  private
54
63
 
55
64
  def serialize_headers(headers)
@@ -1,3 +1,3 @@
1
1
  class Hookshot
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hookshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: