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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b360fae82f2428f0a6c2d390b6320291bc34da86cb6670e858d902ea111751cc
|
4
|
+
data.tar.gz: c9668d930a39b39635317451a21bd560bb971aa2eecfad6f6aeabbc5559cda1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
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.
|
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
|
-
|
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
|
|