active_job_resque_solo 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/active_job/plugins/resque/solo/inspector.rb +4 -2
- data/lib/active_job_resque_solo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f52c7144041b333b7202f5401c36f9e38ff34be5
|
4
|
+
data.tar.gz: 445c8d4b8352f82eb591240ff0bc8113996a3041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d1dae5d8415e5137db768b7784b202d5b66d1b429e86e52cf342d34ec80d54dc6b0b93d57634f0f53d9afdb26f4d52469ac7ad0304fc149077b9bb5d1941ff1
|
7
|
+
data.tar.gz: 59b730d1aa86090baf7c85e8ca719b6befdd4f026739760d1d8931084d23a9f296c07d5e801bee890d76ee71ea4241008a79bffa49de869f2002e3ad0ffd7542
|
data/CHANGELOG.md
CHANGED
@@ -59,14 +59,16 @@ module ActiveJob
|
|
59
59
|
def job_executing?(job)
|
60
60
|
job_class, job_arguments = job(job)
|
61
61
|
|
62
|
-
::Resque.workers.any? do |worker|
|
62
|
+
is_executing = ::Resque.workers.any? do |worker|
|
63
63
|
processing = worker.processing
|
64
64
|
next false if processing.blank?
|
65
65
|
args = processing["payload"]["args"][0]
|
66
66
|
job_with_args_eq?(job_class, job_arguments, args)
|
67
67
|
end
|
68
68
|
|
69
|
-
extend_lock
|
69
|
+
extend_lock unless is_executing
|
70
|
+
|
71
|
+
is_executing
|
70
72
|
end
|
71
73
|
|
72
74
|
def job_enqueued_with_args?(job_class, job_arguments, scheduled_job)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_job_resque_solo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phillip Kinkade
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|