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 +4 -4
- data/README.md +1 -0
- data/lib/sidekiq/running.rb +7 -0
- data/lib/sidekiq/running/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6259c6791c1f95ee17ac5d80399a12c86963f71e
|
4
|
+
data.tar.gz: 3d1c5cb2c5c474367865467ce0f85e29cb07493c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c16997baff8bcd4f6f8c02bd1e6ddb5579d97d413ee6f7aad98a83370af04689d99130bb4f4213cd895c781c55104944cee1e461e13e70a7ab94d5cd7703057
|
7
|
+
data.tar.gz: 304e52e74d83ded1e6aae0192e155b52cb456accc4098f3c05bddd269ad2dbff8b952bb2c10c8b61f22f399b79e3e1ea7c188b18692140d520ebcbd69a12ccdc
|
data/README.md
CHANGED
data/lib/sidekiq/running.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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
|