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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c930212e22c90f665c251822c91a55e2feef7c3f
4
- data.tar.gz: 95c02c8e3290d878acd172b8222c7de99561fc03
3
+ metadata.gz: f52c7144041b333b7202f5401c36f9e38ff34be5
4
+ data.tar.gz: 445c8d4b8352f82eb591240ff0bc8113996a3041
5
5
  SHA512:
6
- metadata.gz: bf690e6c35db40f93be1c5015bf7a2eef68864eb587b5c3a4847ad9583fd2d3ff44eeb5b8920e6891093191c98eab4aa7b1e16557027360932a42bb820a75172
7
- data.tar.gz: 53f4977daa0e4487b5391c1ba12672ff96c9048f5ebc51b93128211a871f530761851a8ed977953e9f8c8a2d466af7ec3637373fd09851d0a22275607185b452
6
+ metadata.gz: 0d1dae5d8415e5137db768b7784b202d5b66d1b429e86e52cf342d34ec80d54dc6b0b93d57634f0f53d9afdb26f4d52469ac7ad0304fc149077b9bb5d1941ff1
7
+ data.tar.gz: 59b730d1aa86090baf7c85e8ca719b6befdd4f026739760d1d8931084d23a9f296c07d5e801bee890d76ee71ea4241008a79bffa49de869f2002e3ad0ffd7542
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.4
2
+
3
+ * Fix bug that could prevent enqueing with slowly performing locks.
4
+
1
5
  # 0.3.3
2
6
 
3
7
  * Simplifies lock acquisition and tightens its restrictions, reducing chances of duplicate enqueues.
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module ActiveJobResqueSolo
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2017-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails