sidekiq-running 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f34952bfa9e6145c3ea2af494e8d3c05bc6259ff
4
- data.tar.gz: 5391abdc655fdc5cd63a7b930d8dbaa17c235886
3
+ metadata.gz: 6259c6791c1f95ee17ac5d80399a12c86963f71e
4
+ data.tar.gz: 3d1c5cb2c5c474367865467ce0f85e29cb07493c
5
5
  SHA512:
6
- metadata.gz: a8ff491c0a03cc5b2acc144a6eafa89a3b094fd09e8ab4d2e14044598219a0cca5089bf9337313a0c4007e316c1b268b04d4a9ef7b80f8031297eadf4778beac
7
- data.tar.gz: a517d8a4aefc5a9f4368bf917b19caebb07b18ccd4f569a6eee2a7881cdec3b49d2f0172645baf218b51825657711abc86b2c1b0d1cb9a5ab15261d38e321bd9
6
+ metadata.gz: 9c16997baff8bcd4f6f8c02bd1e6ddb5579d97d413ee6f7aad98a83370af04689d99130bb4f4213cd895c781c55104944cee1e461e13e70a7ab94d5cd7703057
7
+ data.tar.gz: 304e52e74d83ded1e6aae0192e155b52cb456accc4098f3c05bddd269ad2dbff8b952bb2c10c8b61f22f399b79e3e1ea7c188b18692140d520ebcbd69a12ccdc
data/README.md CHANGED
@@ -49,6 +49,7 @@ HardWorker.programmed?("buy dr.pepper", 10) # => true
49
49
  - running?(*args)
50
50
  - queued?(*args)
51
51
  - scheduled?(*args)
52
+ - queued_to_retry?(*args)
52
53
 
53
54
  - running_or_queued?(*args)
54
55
  - running_or_programmed?(*args)
@@ -35,6 +35,13 @@ module Sidekiq
35
35
  scheduled_job && scheduled_job.enqueued_at or false
36
36
  end
37
37
 
38
+ def queued_to_retry?(*args)
39
+ set = Sidekiq::RetrySet.new
40
+ set.any? do |job|
41
+ job.klass == self.name && job.args == args
42
+ end
43
+ end
44
+
38
45
  def programmed?(*args)
39
46
  queued?(*args) or scheduled?(*args)
40
47
  end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Running
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-running
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Tomás Albornoz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.2.2
76
+ rubygems_version: 2.4.5
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Sidekiq extension to check if you have a job queued or running