sidekiq-unique-jobs 7.1.3 → 7.1.5

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: 57accefc169e11923a88ad34751e2e7c5f2a2c25a8f672084d946d1c536a7a46
4
- data.tar.gz: e019c6288d6b87fb0b306b18e0435095a81a56ab04046ca25485b531c418f692
3
+ metadata.gz: 3e011d17753d5f02a95d186cec3972f62d19e96e74378d8846caf4769ce02a3f
4
+ data.tar.gz: 200879940bca1a29ecd4a7d081dc6b2f692b9f2b284b4b65d85a8cb21d2005bf
5
5
  SHA512:
6
- metadata.gz: 1989a4f0d6a335be4f7b35e97028a32fabd39212dd3f914471fa78c6654cefacc9e2725654299a10b7df5c55f0778566283f7e5e0ba01542de7900995dcfb734
7
- data.tar.gz: d9be5add9dbaac2c523dbb6ed8dfe2879026087132c4812a2a03e4e58945cf481047aff00ed49e78942d8450749fc2864b09b44e6646dd4125452568cbc902ec
6
+ metadata.gz: 2d198d902e3ab61b5b5d61472c67d7d6282da29ecd4aaa78915768e7e58b8eb833ffbf53ae4bd3fb4685a86c925b84ff51fe1c30176dcd20c7309df56ce74587
7
+ data.tar.gz: 5967330190aa578cd87f82d839b4910cf5448682be87de8fa1a9ed8f8c3abf18be97e4ba1596e85b512649516f5b5f2f8c295f6db94ae8e7360c2f55ab9d1709
data/CHANGELOG.md CHANGED
@@ -1,13 +1,27 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/HEAD)
3
+ ## [v7.1.4](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.4) (2021-07-21)
4
4
 
5
- [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.2...HEAD)
5
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.3...v7.1.4)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Pass lock timeout to primed\_async [\#624](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/624) ([millerjs](https://github.com/millerjs))
10
+
11
+ ## [v7.1.3](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.3) (2021-07-20)
12
+
13
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.2...v7.1.3)
6
14
 
7
15
  **Fixed bugs:**
8
16
 
17
+ - Locks are not released: seeing 'Might need to be unlocked manually" warnings [\#594](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/594)
18
+ - Disable resurrector by default [\#623](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/623) ([mhenrixon](https://github.com/mhenrixon))
9
19
  - Documentation fixes [\#622](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/622) ([ursm](https://github.com/ursm))
10
20
 
21
+ **Closed issues:**
22
+
23
+ - Lock until\_and\_while\_executing not working as expected [\#613](https://github.com/mhenrixon/sidekiq-unique-jobs/issues/613)
24
+
11
25
  **Merged pull requests:**
12
26
 
13
27
  - Improve readme [\#621](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/621) ([mhenrixon](https://github.com/mhenrixon))
@@ -179,6 +179,9 @@ module SidekiqUniqueJobs
179
179
  #
180
180
  # Used to reduce some duplication from the two methods
181
181
  #
182
+ # @see lock
183
+ # @see execute
184
+ #
182
185
  # @param [Sidekiq::RedisConnection, ConnectionPool] conn the redis connection
183
186
  # @param [Method] primed_method reference to the method to use for getting a primed token
184
187
  #
@@ -238,7 +241,7 @@ module SidekiqUniqueJobs
238
241
  def primed_async(conn, wait = nil, &block)
239
242
  primed_jid = Concurrent::Promises
240
243
  .future(conn) { |red_con| pop_queued(red_con, wait) }
241
- .value(add_drift(wait || config.ttl))
244
+ .value(add_drift(wait || config.timeout))
242
245
 
243
246
  handle_primed(primed_jid, &block)
244
247
  end
@@ -51,7 +51,7 @@ module SidekiqUniqueJobs
51
51
  if Process.const_defined?("CLOCK_MONOTONIC")
52
52
  Process.clock_gettime(Process::CLOCK_MONOTONIC)
53
53
  else
54
- Time.now.to_f
54
+ now_f
55
55
  end
56
56
  end
57
57
  end
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.3"
6
+ VERSION = "7.1.5"
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.3
4
+ version: 7.1.5
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-07-20 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  requirements: []
264
- rubygems_version: 3.0.3.1
264
+ rubygems_version: 3.2.24
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Sidekiq middleware that prevents duplicates jobs