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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 386c133d27bc902bc97772205b891514a584f1a7958792ae48a89bdac755ffd1
4
- data.tar.gz: 345c7dd35ffbb29cb1d36367b8bedc7b15209e11fc1a1a6acc0e4f53d6e04a90
3
+ metadata.gz: d2354dc9caa50f37a589f42d02e751fca853453e5e02029644b58aebb9a0f834
4
+ data.tar.gz: 74e452b537a9ac95931ec1ce1da9d50a0b713bb3c21abbc8a4c6dbe5c244d1bd
5
5
  SHA512:
6
- metadata.gz: ab84fe40faa41b69d9b0d2f29aac64f98faf12c0ef15586f4423b4230e4d679dd74cde25afc4cd01614eb5ef1b1d7adb3a37bca28afd8fffe734d78d91f4fcae
7
- data.tar.gz: d163b0d67fd5a6b433b352fcffdf14455ea9c8ef5b04942cea9e8024adf15583669c289c37c47f5e41a624cf3a7cf13235e09866dce997f1220a3a6521e9d787
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,fakse]
82
+ # @return [true,false]
83
83
  #
84
84
  def wait_for_lock?
85
85
  timeout.nil? || timeout.positive?
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.1"
6
+ VERSION = "7.1.2"
7
7
  end
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.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-06-30 00:00:00.000000000 Z
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