sidekiq-unique-jobs 6.0.7 → 6.0.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq-unique-jobs might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/sidekiq_unique_jobs/digests.rb +1 -1
- data/lib/sidekiq_unique_jobs/job.rb +1 -1
- data/lib/sidekiq_unique_jobs/util.rb +1 -1
- data/lib/sidekiq_unique_jobs/version.rb +1 -1
- data/redis/unlock.lua +3 -1
- data/sidekiq-unique-jobs.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8e3e7df2b735b18c5d7646a2bf292dfdd5fbc43df961df752f41886370f17b1
|
4
|
+
data.tar.gz: 3c4858831e72b5a0ccf2df861431a2b8efd50d6d591de238fd85115cc38a0eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2384464c18ab4c26d15f593f7eb22f09556097b17c72a92ebc27e8f1958f6db76fe00b5b9d8fff29c2b03325cb1aa964d921e0ab077ac85b8b6b969451a0259a
|
7
|
+
data.tar.gz: 53624c8fd54ae96aec99da1ac77386079a7d5b84eac5cb2cec10cc33869c3f75d1d28e626e9dbe371eb064b22e7f7bf60ace313a81424a4be450a4fd0df85cac
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## v6.0.8
|
2
|
+
|
3
|
+
- Expire available keys after unlocking ([caused by #352](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/352))
|
4
|
+
|
5
|
+
## v6.0.7
|
6
|
+
|
7
|
+
- Fix a bug leaving jobs locked ([#352](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/352))
|
8
|
+
|
1
9
|
## v6.0.6
|
2
10
|
|
3
11
|
- Fixes a bug with the command line utility ([#321](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/321))
|
@@ -178,7 +186,7 @@
|
|
178
186
|
|
179
187
|
## v4.0.0
|
180
188
|
|
181
|
-
- Improved uniqueness handling (complete refactoring, upgrade with
|
189
|
+
- Improved uniqueness handling (complete refactoring, upgrade with caution)
|
182
190
|
- 100% breaking changes
|
183
191
|
|
184
192
|
## v3.0.15
|
@@ -5,7 +5,7 @@ module SidekiqUniqueJobs
|
|
5
5
|
#
|
6
6
|
# @author Mikael Henriksson <mikael@zoolutions.se>
|
7
7
|
module Job
|
8
|
-
extend self
|
8
|
+
extend self
|
9
9
|
|
10
10
|
# Adds timeout, expiration, unique_args, unique_prefix and unique_digest to the sidekiq job hash
|
11
11
|
# @return [void] nothing returned here matters
|
data/redis/unlock.lua
CHANGED
@@ -28,5 +28,7 @@ else
|
|
28
28
|
redis.call('DEL', unique_digest) -- TODO: Legacy support (Remove in v6.1)
|
29
29
|
end
|
30
30
|
|
31
|
-
|
31
|
+
local count = redis.call('LPUSH', available_key, token)
|
32
|
+
redis.call('EXPIRE', available_key, 5)
|
33
|
+
return count
|
32
34
|
|
data/sidekiq-unique-jobs.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'sidekiq', '>= 4.0', '< 6.0'
|
31
31
|
spec.add_dependency 'thor', '~> 0'
|
32
32
|
|
33
|
-
spec.add_development_dependency 'bundler', '
|
33
|
+
spec.add_development_dependency 'bundler', '>= 1.16'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
35
35
|
spec.add_development_dependency 'rake', '~> 12.3'
|
36
36
|
spec.add_development_dependency 'timecop', '~> 0.9'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-unique-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -68,14 +68,14 @@ dependencies:
|
|
68
68
|
name: bundler
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - "
|
71
|
+
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '1.16'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - "
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '1.16'
|
81
81
|
- !ruby/object:Gem::Dependency
|
@@ -337,8 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
337
|
- !ruby/object:Gem::Version
|
338
338
|
version: '0'
|
339
339
|
requirements: []
|
340
|
-
|
341
|
-
rubygems_version: 2.7.7
|
340
|
+
rubygems_version: 3.0.2
|
342
341
|
signing_key:
|
343
342
|
specification_version: 4
|
344
343
|
summary: Uniqueness for Sidekiq Jobs
|