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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10e850f31b0ccdb3fb851cd075ab25ff6121245c7b0eace83e7075b637bbccf2
4
- data.tar.gz: 6b6d7592acd4822c915b54c29d4fde9715709edbececdd7ff3324401ce8cfb8c
3
+ metadata.gz: a8e3e7df2b735b18c5d7646a2bf292dfdd5fbc43df961df752f41886370f17b1
4
+ data.tar.gz: 3c4858831e72b5a0ccf2df861431a2b8efd50d6d591de238fd85115cc38a0eb3
5
5
  SHA512:
6
- metadata.gz: c68d91eaa41ab900ab2063a1a7f514283743f11546fff0ba479869c4479c8ff2ccb1b4d04636dcc6bb8f9dd8345562a09c488380dcadd5e1d1fb745eb5ec3564
7
- data.tar.gz: a36b53f36718f17e2ab4f25d5456aae403e51a53cecdacd142c26dc28c177f147bce6c960db8b9ce31328c621ab0379251e27b0fed9b0de04d3175e23d8134e3
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 causion)
189
+ - Improved uniqueness handling (complete refactoring, upgrade with caution)
182
190
  - 100% breaking changes
183
191
 
184
192
  ## v3.0.15
@@ -11,7 +11,7 @@ module SidekiqUniqueJobs
11
11
 
12
12
  include SidekiqUniqueJobs::Logging
13
13
  include SidekiqUniqueJobs::Connection
14
- extend self # rubocop:disable Style/ModuleFunction
14
+ extend self
15
15
 
16
16
  # Return unique digests matching pattern
17
17
  #
@@ -5,7 +5,7 @@ module SidekiqUniqueJobs
5
5
  #
6
6
  # @author Mikael Henriksson <mikael@zoolutions.se>
7
7
  module Job
8
- extend self # rubocop:disable Style/ModuleFunction
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
@@ -11,7 +11,7 @@ module SidekiqUniqueJobs
11
11
 
12
12
  include SidekiqUniqueJobs::Logging
13
13
  include SidekiqUniqueJobs::Connection
14
- extend self # rubocop:disable Style/ModuleFunction
14
+ extend self
15
15
 
16
16
  # Find unique keys in redis
17
17
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqUniqueJobs
4
- VERSION = '6.0.7'
4
+ VERSION = '6.0.8'
5
5
  end
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
- return redis.call('LPUSH', available_key, token)
31
+ local count = redis.call('LPUSH', available_key, token)
32
+ redis.call('EXPIRE', available_key, 5)
33
+ return count
32
34
 
@@ -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', '~> 1.16'
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.7
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: 2018-11-29 00:00:00.000000000 Z
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
- rubyforge_project:
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