resque-workers-lock 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/resque/plugins/workers/lock.rb +1 -1
- data/lib/resque-workers-lock/version.rb +9 -0
- data/lib/resque-workers-lock.rb +2 -0
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 550341345e405c23f896c29155a6af17f6abf472ac1a11e2fea1a0c0cb60d657
|
4
|
+
data.tar.gz: c7fdab669f54cc3c4e969269ba7f1ef834cd0dc94cc75d10675d5e4148315757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d270cdd0880e5913fbf708344c42207c70a8393793002127202335cd10aca9a8107015a4d3dc90a638b9f860874400cdb39500bd2e84611d5cc2bcad70b52563
|
7
|
+
data.tar.gz: e1a965934d04f3b558e80bd488180b1817d800970440a08362555c19c37e7de41c34055d994efe4b59c226b15f6af6b78eb3cb2640cc4ed5fd2f16a7578b2c05
|
@@ -59,7 +59,7 @@ module Resque
|
|
59
59
|
if lock_workers(*args)
|
60
60
|
lock_result = get_lock_workers(*args)
|
61
61
|
|
62
|
-
if Resque.redis.msetnx lock_result.zip([true]*lock_result.size).flatten
|
62
|
+
if Resque.redis.msetnx lock_result.zip(['true']*lock_result.size).flatten
|
63
63
|
lock_result.each do |lock|
|
64
64
|
Resque.redis.expire(lock, worker_lock_timeout(*args))
|
65
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-workers-lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bart Olsthoorn
|
@@ -9,10 +9,11 @@ authors:
|
|
9
9
|
- Jason Garber
|
10
10
|
- Tijs Planckaert
|
11
11
|
- Anton Bogdanovich
|
12
|
+
- Arian Faurtosh
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
|
-
date:
|
16
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: resque
|
@@ -42,6 +43,20 @@ dependencies:
|
|
42
43
|
- - ">="
|
43
44
|
- !ruby/object:Gem::Version
|
44
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: pry
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
type: :development
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
45
60
|
description: |
|
46
61
|
A Resque plugin. Two or more jobs with the same lock cannot be processed simultaneously by multiple workers.
|
47
62
|
When this situation occurs the second job gets pushed back to the queue.
|
@@ -53,6 +68,8 @@ files:
|
|
53
68
|
- LICENSE
|
54
69
|
- README.md
|
55
70
|
- Rakefile
|
71
|
+
- lib/resque-workers-lock.rb
|
72
|
+
- lib/resque-workers-lock/version.rb
|
56
73
|
- lib/resque/plugins/workers/lock.rb
|
57
74
|
- test/lock_mkey_test.rb
|
58
75
|
- test/lock_test.rb
|
@@ -77,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
94
|
- !ruby/object:Gem::Version
|
78
95
|
version: '0'
|
79
96
|
requirements: []
|
80
|
-
|
81
|
-
rubygems_version: 2.4.6
|
97
|
+
rubygems_version: 3.0.3.1
|
82
98
|
signing_key:
|
83
99
|
specification_version: 4
|
84
100
|
summary: Resque plugin, prevent specific jobs to be processed simultaneously by multiple
|