sidekiq_unique_digests_cleaner 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3a3e21c79cca22f709d193ad2a8ad75f1b806d6d40f2f8ef17db372334b1d27
4
- data.tar.gz: 3b87a7b53c3a0ab49771efade7b6278f6b23ee5205870c2b18c44d030d94c0c9
3
+ metadata.gz: f06bacde7cccfaccc8593e8bb32a2932b1b0bee07a981c82d36df14106b62271
4
+ data.tar.gz: bdf3cb9c0de0f2e0b4a86c5371cf406e4846d267950c6201b898e599a551a484
5
5
  SHA512:
6
- metadata.gz: f2995898e955972eedbaaea1c80a13dbd22d0ab0b80e8817ccf4ea35c006ea5ee5713abd068e6a662e1f8fdb623b1af7c78b30728bcbd891e46e064f7c26560c
7
- data.tar.gz: 00a9af01da6319ed7c33e2dbdbe03dd7c5e2bdf2087fc9a46eb041a827d699e0a000519e4ca3dcc6729868aecd689dcae4e2ce9a0934cef6595a8519fcda68fe
6
+ metadata.gz: 5cdb625e3135c482e7114cf7ad233d00009c4ed6d1470a6254f9a5a5490a93f99f3d185c059872c1d9044f2f1ccdc80c6542225e7ed69cc3c0abc8f9a1690293
7
+ data.tar.gz: a22c9b5124bbe306b9510541eca0081fe03ea31cbfb6d91220c594cc3c3b87f02e208ff4aa02f313d54f90ee5161ff8a9977a1bc29c9d0baf90671ba450adcc3
@@ -7,10 +7,10 @@ class SidekiqUniqueDigestsCleaner
7
7
  if digests.any?
8
8
  Sidekiq.logger.info("######## Looks like those digests are stuck: #{digests.join(', ')}")
9
9
  Sidekiq.logger.info('######## Unlocking digests...')
10
- digests.map { |digest| SidekiqUniqueJobs::Digests.del(digest: digest) }
10
+ digests.map { |digest| SidekiqUniqueJobs::Digests.new.delete_by_digest(digest) }
11
11
  Sidekiq.logger.info('######## Unlocked!')
12
12
  else
13
- Sidekiq.logger.info('######## What is the nice day! Nothing to unlock.')
13
+ Sidekiq.logger.info('######## Beautiful day! Nothing to unlock.')
14
14
  end
15
15
  end
16
16
 
@@ -23,6 +23,6 @@ class SidekiqUniqueDigestsCleaner
23
23
 
24
24
  digests_with_lock += Sidekiq::Workers.new.map { |_pid, _tid, job| job['unique_digest'] }
25
25
 
26
- SidekiqUniqueJobs::Digests.all - digests_with_lock
26
+ SidekiqUniqueJobs::Digests.new.entries.keys - digests_with_lock
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_unique_digests_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Honcharov
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '7.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '6.0'
29
+ version: '7.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.0'