sidekiq-unique-jobs 7.1.10 → 7.1.11

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: 64a9b84d435ae24be5efae573644c34ba8f16086428ce50c238d54103a39d169
4
- data.tar.gz: 671bd927bfbcae9c5cd69eaea7191f7a04e8e1e1180b72e7122f06baefab7750
3
+ metadata.gz: b360fae82f2428f0a6c2d390b6320291bc34da86cb6670e858d902ea111751cc
4
+ data.tar.gz: c9668d930a39b39635317451a21bd560bb971aa2eecfad6f6aeabbc5559cda1d
5
5
  SHA512:
6
- metadata.gz: ffd863678e2f883bee00e8656ba4561b5326f8f60936c5ceb65a1e25886f874173bc4c3f190639294f2e32c106b13515c2c4e37a2845dcf41b1794e47c4f85fd
7
- data.tar.gz: 151ec6e893be20ee73048156deb38a7deaf0f4ab030947903eb9501d587348d3ee0dcab3b8f87dae9cc1c35ab397257182722bedbf0dfe4e712e560c17940078
6
+ metadata.gz: 60540d8412247eae7dc99328eb77a79ad18dccc4fe83345b4abfb1bf4e3aa4e9fe713a49b6c2adaa5b081122471d95e88898cf19f5c97914a84f04fdfa259a11
7
+ data.tar.gz: c5c5c92b36675ce1567cbbba76839ba9466ac03fdd53000947d611f9f8a3a68df6cafca6909d947c3c367839014cdc61e5fd8a45c7f5c3e5ac114a811aa69828
@@ -65,18 +65,12 @@ redis.call("LREM", queued, -1, job_id)
65
65
  log_debug("LREM", primed, -1, job_id)
66
66
  redis.call("LREM", primed, -1, job_id)
67
67
 
68
- if limit and limit <= 1 and locked_count and locked_count <= 1 then
69
- log_debug("ZREM", digests, digest)
70
- redis.call("ZREM", digests, digest)
71
- end
72
-
73
68
  local redis_version = toversion(redisversion)
74
69
  local del_cmd = "DEL"
75
70
 
76
71
  if tonumber(redis_version["major"]) >= 4 then del_cmd = "UNLINK"; end
77
72
 
78
73
  if lock_type ~= "until_expired" then
79
-
80
74
  log_debug(del_cmd, digest, info)
81
75
  redis.call(del_cmd, digest, info)
82
76
 
@@ -86,11 +80,16 @@ end
86
80
 
87
81
  local locked_count = redis.call("HLEN", locked)
88
82
 
89
- if tonumber(locked_count) < 1 then
83
+ if locked_count and locked_count < 1 then
90
84
  log_debug(del_cmd, locked)
91
85
  redis.call(del_cmd, locked)
92
86
  end
93
87
 
88
+ if limit and limit <= 1 and locked_count and locked_count <= 1 then
89
+ log_debug("ZREM", digests, digest)
90
+ redis.call("ZREM", digests, digest)
91
+ end
92
+
94
93
  log_debug("LPUSH", queued, "1")
95
94
  redis.call("LPUSH", queued, "1")
96
95
 
@@ -59,7 +59,7 @@ module SidekiqUniqueJobs
59
59
  next if belongs_to_job?(digest)
60
60
 
61
61
  memo << digest
62
- break if memo.size >= reaper_count
62
+ break memo if memo.size >= reaper_count
63
63
  end
64
64
  end
65
65
 
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.10"
6
+ VERSION = "7.1.11"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-unique-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.10
4
+ version: 7.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
@@ -215,11 +215,7 @@ homepage: https://mhenrixon.github.io/sidekiq-unique-jobs
215
215
  licenses:
216
216
  - MIT
217
217
  metadata:
218
- homepage_uri: https://mhenrixon.github.io/sidekiq-unique-jobs
219
- bug_tracker_uri: https://github.com/mhenrixon/sidekiq-unique-jobs/issues
220
- documentation_uri: https://mhenrixon.github.io/sidekiq-unique-jobs
221
- source_code_uri: https://github.com/mhenrixon/sidekiq-unique-jobs
222
- changelog_uri: https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/CHANGELOG.md
218
+ rubygems_mfa_required: 'true'
223
219
  post_install_message: |
224
220
  IMPORTANT!
225
221