sidekiq-unique-jobs 7.0.0.beta3 → 7.0.0.beta4

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: f5f537750acf3b6a7b8f25ede43519210cc05dc77069417539a54c0c2d0c114c
4
- data.tar.gz: 367d2a7f27d10200d4eb2b148b2ea34fbdffe16eb52ae71cfe73b5b20d2822d8
3
+ metadata.gz: c73d16cc7119474898230003931d398ee6f0e6b925117cbbf763cbb9b740edf1
4
+ data.tar.gz: 8371f1cf3bb123a5df3a603c3c67abb584d51cbb646b088d9c2e9593343f4672
5
5
  SHA512:
6
- metadata.gz: 8fe2296811e1d1d8350c51d232261e61879317a6a4c46a86a302dfac9a0ad341191086ac96db74430d51ead315e370f1073f6015098fff09d5995abcc40d5146
7
- data.tar.gz: 6fd909cfb0c8960cc1cb14bbd336493897121d24801ad1c2b678733666fba76a3ea0a5d6868e814c9f426080ff027fdf6102ffee08a2108e2ee840496a493717
6
+ metadata.gz: 4671e078b75e70a2f427229b2d8dbcf259a32a3f8b13ab61ed9963b9d63327b31834082724a5abd4b46a79867c51f8578a36178027f690cac442550b8fed5bfe
7
+ data.tar.gz: b0bda233fddf2ff36394702b6b074a09290690802a7dcea8fe4be3ff56d95f0a7641b75287ea71a3417e11c7df6578f2403d77a57a1d24187fc3c6cac0bc5890
@@ -178,14 +178,10 @@ module SidekiqUniqueJobs
178
178
  Sidekiq.redis do |conn|
179
179
  queues(conn) do |queue|
180
180
  entries(conn, queue) do |entry|
181
- if entry.include?(digest)
182
- log_info("#{digest} found in #{queue}")
183
- return true
184
- end
181
+ return true if entry.include?(digest)
185
182
  end
186
183
  end
187
184
 
188
- log_info("#{digest} not enqueued")
189
185
  false
190
186
  end
191
187
  end
@@ -211,7 +207,7 @@ module SidekiqUniqueJobs
211
207
  yield entry
212
208
  end
213
209
 
214
- deleted_size = initial_size - size
210
+ deleted_size = initial_size - conn.llen(queue_key)
215
211
  end
216
212
  end
217
213
 
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.0.0.beta3"
6
+ VERSION = "7.0.0.beta4"
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.0.beta3
4
+ version: 7.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-24 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script