sidekiq-unique-jobs 7.1.23 → 7.1.24

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: a1ae59f4e98b72ee08f3f2ea67c20a8b13a0fa548d9134b5604b96a6feda3e20
4
- data.tar.gz: a2089221da0b5c5865e4fea790547e1bad75033f0d09d741613a2d21ce642c00
3
+ metadata.gz: 1cfc4a33d7d14fc257c4a2e316950196f88687d479032840519b1b7a6aa21410
4
+ data.tar.gz: b2cd8fb056319d11250da89aa0e03c80151019ca54592bf6c426fe36c779f9c7
5
5
  SHA512:
6
- metadata.gz: f8f4bdeb8eda602434885e6c5a719154c9e292915f6a5b5e19d988cabf8a83e967b14ae1d77019618eb447739d23d0eff6dc39a1ed25e353a71bbbbf689d7628
7
- data.tar.gz: ef20b58ce49610c7a640cc7d79f432b6e9a18b6197f51c8b27cc29f4325fadb2cb3b2d4fe014f3efb408cffcb2a4e8fafde86e720c8b3040fe00eaff7da2b7f0
6
+ metadata.gz: fe97fddbd710c1b6af36a814029cd8576b73e3f442222006644deb5651d264bb30f7336083ed5a649763e78e87df2fba807be3700501902b6559e8f8935a06fa
7
+ data.tar.gz: 6725f6c10ec85f0591d431ca2ff4f2b498c4fd309615c5ab3970fba1429f07676c98373dc6794f40fdc5ec8a646b54679c9b341c20d9a0f180fde0d86f9989ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v7.1.23](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.23) (2022-05-23)
4
+
5
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.22...v7.1.23)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - fix: raise on error [\#712](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/712) ([mhenrixon](https://github.com/mhenrixon))
10
+
3
11
  ## [v7.1.22](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.1.22) (2022-05-04)
4
12
 
5
13
  [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.1.21...v7.1.22)
@@ -6,6 +6,8 @@ module SidekiqUniqueJobs
6
6
  #
7
7
  # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  class Client
9
+ include Sidekiq::ClientMiddleware if defined?(Sidekiq::ClientMiddleware)
10
+
9
11
  # prepend "SidekiqUniqueJobs::Middleware"
10
12
  # @!parse prepends SidekiqUniqueJobs::Middleware
11
13
  prepend SidekiqUniqueJobs::Middleware
@@ -6,6 +6,8 @@ module SidekiqUniqueJobs
6
6
  #
7
7
  # @author Mikael Henriksson <mikael@mhenrixon.com>
8
8
  class Server
9
+ include Sidekiq::ClientMiddleware if defined?(Sidekiq::ServerMiddleware)
10
+
9
11
  # prepend "SidekiqUniqueJobs::Middleware"
10
12
  # @!parse prepends SidekiqUniqueJobs::Middleware
11
13
  prepend SidekiqUniqueJobs::Middleware
@@ -71,18 +71,6 @@ module Sidekiq
71
71
 
72
72
  sidekiq_options(old_options)
73
73
  end
74
-
75
- #
76
- # Clears the jobs for this worker and removes all locks
77
- #
78
- def clear
79
- jobs.each do |job|
80
- SidekiqUniqueJobs::Unlockable.unlock(job)
81
- end
82
-
83
- Sidekiq::Queues[queue].clear
84
- jobs.clear
85
- end
86
74
  end
87
75
 
88
76
  #
@@ -110,8 +98,31 @@ module Sidekiq
110
98
 
111
99
  SidekiqUniqueJobs::Digests.new.delete_by_pattern("*", count: 10_000)
112
100
  end
101
+
102
+ #
103
+ # Prepends deletion of locks to clear
104
+ #
105
+ module ClassMethods
106
+ #
107
+ # Clears the jobs for this worker and removes all locks
108
+ #
109
+ def clear
110
+ jobs.each do |job|
111
+ SidekiqUniqueJobs::Unlockable.unlock(job)
112
+ end
113
+
114
+ super
115
+ end
116
+ end
113
117
  end
114
118
 
115
119
  prepend Overrides
120
+
121
+ #
122
+ # Prepends methods to Sidekiq::Worker
123
+ #
124
+ module ClassMethods
125
+ prepend Overrides::ClassMethods
126
+ end
116
127
  end
117
128
  end
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.23"
6
+ VERSION = "7.1.24"
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.1.23
4
+ version: 7.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script