sidekiq-unique-jobs 7.1.1 → 7.1.2
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 +12 -0
- data/lib/sidekiq_unique_jobs/lock_config.rb +3 -3
- data/lib/sidekiq_unique_jobs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2354dc9caa50f37a589f42d02e751fca853453e5e02029644b58aebb9a0f834
|
4
|
+
data.tar.gz: 74e452b537a9ac95931ec1ce1da9d50a0b713bb3c21abbc8a4c6dbe5c244d1bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e09b6b645e8e35363fe500f010f5270ae7390c02580eecad85fa8340464e4ac976ee145bbbafd023754d0c350ca4156987806d0d40e437fd545c052d1fe61bf
|
7
|
+
data.tar.gz: 232b264a07872013097445198858da715e974bfa2a9121acecb3bb3f6038a0c5914addb5d869505c0dd39e2940034f44058ab19975a88ad3426db2407611170b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v7.1.1](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.1) (2021-06-30)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.0...v7.1.1)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Fix handling of lock timeout [\#619](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/619) ([mhenrixon](https://github.com/mhenrixon))
|
10
|
+
|
11
|
+
**Closed issues:**
|
12
|
+
|
13
|
+
- Max expiration for locks [\#593](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/593)
|
14
|
+
|
3
15
|
## [v7.1.0](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.0) (2021-06-29)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.12...v7.1.0)
|
@@ -59,8 +59,8 @@ module SidekiqUniqueJobs
|
|
59
59
|
def initialize(job_hash = {})
|
60
60
|
@type = job_hash[LOCK]&.to_sym
|
61
61
|
@worker = SidekiqUniqueJobs.safe_constantize(job_hash[CLASS])
|
62
|
-
@limit = job_hash.fetch(LOCK_LIMIT, 1)
|
63
|
-
@timeout = job_hash.fetch(LOCK_TIMEOUT, 0)
|
62
|
+
@limit = job_hash.fetch(LOCK_LIMIT, 1)&.to_i
|
63
|
+
@timeout = job_hash.fetch(LOCK_TIMEOUT, 0)&.to_i
|
64
64
|
@ttl = job_hash.fetch(LOCK_TTL) { job_hash.fetch(LOCK_EXPIRATION, nil) }.to_i
|
65
65
|
@pttl = ttl * 1_000
|
66
66
|
@lock_info = job_hash.fetch(LOCK_INFO) { SidekiqUniqueJobs.config.lock_info }
|
@@ -79,7 +79,7 @@ module SidekiqUniqueJobs
|
|
79
79
|
# Indicate if timeout was set
|
80
80
|
#
|
81
81
|
#
|
82
|
-
# @return [true,
|
82
|
+
# @return [true,false]
|
83
83
|
#
|
84
84
|
def wait_for_lock?
|
85
85
|
timeout.nil? || timeout.positive?
|
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: 7.1.
|
4
|
+
version: 7.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brpoplpush-redis_script
|