sidekiq-unique-jobs 7.0.11 → 7.0.12

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: d8bf67dee2b01934cc8d2402a9662d7b1048ec75c2ca7ac76c5ec00ac1e07ffe
4
- data.tar.gz: bca38efcab9618fc146707ad4530a53cbe2983ae07a31fe923a9f9c8afc1415a
3
+ metadata.gz: 997eb6014dde8ab2896a7ccae9f1a6da4b298e1215fc7614366984b35a9b2786
4
+ data.tar.gz: '09904fed282a0cd42d3a92b22ee590a202eeb41ee111958bf17b703fc8664fbd'
5
5
  SHA512:
6
- metadata.gz: e2edc9978a36bb106b610d708489b620b79443075a2c7e240154674d59574c5e0a5654cf9883ea6d9dc35aca6ba41ccf8ac3c1a566dbbcb767eb375b1dc41b85
7
- data.tar.gz: de60d4517653af2d64d23f2fcc17f8a757e0239d86f379a6b6f87db12aaaf299b144a75895468859118a28230a5f1f1f880182cf6a89981fdcae08b9f3d17b84
6
+ metadata.gz: '079842a1365a76ff6f17d1056848cc22774bb7007ae02e477609fff9544655f0b26e7d583963abcade5df1988b750a2efc7b16217b488d232664f8279f45c44c'
7
+ data.tar.gz: b287ea28677b4f5b0c52773038e3a4152fa531136e4f46c7bb4a81c888c3e3dd055cb9c4c8f5ba1872a152ac16fefdf2908bc7f10044b44f63cfdc6bbfeffb4e
data/CHANGELOG.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/HEAD)
3
+ ## [v7.0.11](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.11) (2021-05-16)
4
4
 
5
- [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.10...HEAD)
5
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.10...v7.0.11)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Constants are not necessary when deleting locks [\#606](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/606) ([mhenrixon](https://github.com/mhenrixon))
6
10
 
7
11
  **Closed issues:**
8
12
 
13
+ - Sidekiq Pro Sharded Web UI Error \> 7.0.8 [\#605](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/605)
9
14
  - Timed out after 0s while waiting for primed token [\#601](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/601)
10
15
 
11
16
  ## [v7.0.10](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.10) (2021-05-10)
data/README.md CHANGED
@@ -226,7 +226,7 @@ SidekiqUniqueJobs.config.lock_ttl #=> nil
226
226
 
227
227
  Set a global lock_ttl to use for all jobs that don't otherwise specify a lock_ttl.
228
228
 
229
- Lock TTL decides how long to wait after the job has been successfully processed before making it possible to reuse that lock.
229
+ Lock TTL decides how long to wait at most before considering a lock to be expired and making it possible to reuse that lock.
230
230
 
231
231
  ### enabled
232
232
 
@@ -336,7 +336,7 @@ sidekiq_options lock_prefix: "uniquejobs" # this is the default value
336
336
 
337
337
  ### lock_ttl
338
338
 
339
- Lock TTL decides how long to wait after the job has been successfully processed before making it possible to reuse that lock.
339
+ Lock TTL decides how long to wait at most before considering a lock to be expired and making it possible to reuse that lock.
340
340
 
341
341
  Starting from `v7` the expiration will take place when the job is pushed to the queue.
342
342
 
@@ -567,7 +567,7 @@ You may need to define some custom strategy. You can define it in one project fo
567
567
  ```ruby
568
568
  # lib/strategies/my_custom_strategy.rb
569
569
  module Strategies
570
- class MyCustomStrategy < OnConflict::Strategy
570
+ class MyCustomStrategy < SidekiqUniqueJobs::OnConflict::Strategy
571
571
  def call
572
572
  # Do something ...
573
573
  end
@@ -336,7 +336,9 @@ module SidekiqUniqueJobs
336
336
  end
337
337
 
338
338
  def warn_about_timeout
339
- log_warn("Timed out after #{config.timeout}s while waiting for primed token (digest: #{key}, job_id: #{job_id})")
339
+ return unless config.wait_for_lock?
340
+
341
+ log_debug("Timed out after #{config.timeout}s while waiting for primed token (digest: #{key}, job_id: #{job_id})")
340
342
  end
341
343
 
342
344
  def lock_info
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.0.11"
6
+ VERSION = "7.0.12"
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.0.11
4
+ version: 7.0.12
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-05-18 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.2.6
260
+ rubygems_version: 3.2.19
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Sidekiq middleware that prevents duplicates jobs