sidekiq 5.0.2 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +5 -10
- data/Changes.md +8 -0
- data/Ent-Changes.md +3 -3
- data/Pro-Changes.md +6 -0
- data/lib/sidekiq/delay.rb +21 -2
- data/lib/sidekiq/processor.rb +1 -1
- data/lib/sidekiq/redis_connection.rb +1 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/worker.rb +4 -4
- data/sidekiq.gemspec +0 -6
- metadata +2 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c3542376ef438c3df60b3dd7aff6a49686395c5
|
4
|
+
data.tar.gz: d5f6869758d9897a54f71d3b4c0eff4544d3c4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38acf5142486eca974edef0da082033a210ba03b2f53509e638a2d35e2e2a224f2348b0ce4ded7c6643a708184453afb76181e293a57e3f74836119135b3b9e3
|
7
|
+
data.tar.gz: 8e4c6fed7be46d0b478deb457b35778552bbb8cd234934c9adc8d4a4d54ba7c1be48420a4e04882137bf9bf66617a03638fef6bd18c757335bd3670e2ae7735b
|
data/.travis.yml
CHANGED
@@ -6,13 +6,8 @@ services:
|
|
6
6
|
before_install:
|
7
7
|
- gem install bundler
|
8
8
|
- gem update bundler
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
env: "PERCY_ENABLE=0"
|
15
|
-
- rvm: 2.4.0
|
16
|
-
env: "PERCY_ENABLE=1"
|
17
|
-
- rvm: jruby-9.1.6.0
|
18
|
-
env: "PERCY_ENABLE=0"
|
9
|
+
rvm:
|
10
|
+
- 2.2.4
|
11
|
+
- 2.3.0
|
12
|
+
- 2.4.0
|
13
|
+
- jruby-9.1.6.0
|
data/Changes.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
|
4
4
|
|
5
|
+
5.0.3
|
6
|
+
-----------
|
7
|
+
|
8
|
+
- Fix overriding `class_attribute` core extension from ActiveSupport with Sidekiq one [PikachuEXE, #3499]
|
9
|
+
- Allow job logger to be overridden [AlfonsoUceda, #3502]
|
10
|
+
- Set a default Redis client identifier for debugging [#3516]
|
11
|
+
- Fix "Uninitialized constant" errors on startup with the delayed extensions [#3509]
|
12
|
+
|
5
13
|
5.0.2
|
6
14
|
-----------
|
7
15
|
|
data/Ent-Changes.md
CHANGED
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
|
6
6
|
|
7
|
-
|
7
|
+
1.6.0
|
8
8
|
-------------
|
9
9
|
|
10
|
-
- Show process "leader" tag on Busy page, requires Sidekiq 5.0.
|
10
|
+
- Show process "leader" tag on Busy page, requires Sidekiq 5.0.2 [#2867]
|
11
11
|
- Capture custom metrics with the `save_history` API. [#2815]
|
12
|
-
- Implement new `
|
12
|
+
- Implement new `unique_until: 'start'` policy option. [#3471]
|
13
13
|
|
14
14
|
1.5.4
|
15
15
|
-------------
|
data/Pro-Changes.md
CHANGED
data/lib/sidekiq/delay.rb
CHANGED
@@ -3,12 +3,17 @@ module Sidekiq
|
|
3
3
|
|
4
4
|
def self.enable_delay!
|
5
5
|
if defined?(::ActiveSupport)
|
6
|
+
require 'sidekiq/extensions/active_record'
|
7
|
+
require 'sidekiq/extensions/action_mailer'
|
8
|
+
|
9
|
+
# Need to patch Psych so it can autoload classes whose names are serialized
|
10
|
+
# in the delayed YAML.
|
11
|
+
Psych::Visitors::ToRuby.prepend(Sidekiq::Extensions::PsychAutoload)
|
12
|
+
|
6
13
|
ActiveSupport.on_load(:active_record) do
|
7
|
-
require 'sidekiq/extensions/active_record'
|
8
14
|
include Sidekiq::Extensions::ActiveRecord
|
9
15
|
end
|
10
16
|
ActiveSupport.on_load(:action_mailer) do
|
11
|
-
require 'sidekiq/extensions/action_mailer'
|
12
17
|
extend Sidekiq::Extensions::ActionMailer
|
13
18
|
end
|
14
19
|
end
|
@@ -17,5 +22,19 @@ module Sidekiq
|
|
17
22
|
Module.__send__(:include, Sidekiq::Extensions::Klass)
|
18
23
|
end
|
19
24
|
|
25
|
+
module PsychAutoload
|
26
|
+
def resolve_class(klass_name)
|
27
|
+
# constantize
|
28
|
+
names = klass_name.split('::')
|
29
|
+
names.shift if names.empty? || names.first.empty?
|
30
|
+
|
31
|
+
names.inject(Object) do |constant, name|
|
32
|
+
constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
|
33
|
+
end
|
34
|
+
rescue NameError
|
35
|
+
super
|
36
|
+
end
|
37
|
+
end
|
20
38
|
end
|
21
39
|
end
|
40
|
+
|
data/lib/sidekiq/processor.rb
CHANGED
@@ -39,7 +39,7 @@ module Sidekiq
|
|
39
39
|
@thread = nil
|
40
40
|
@strategy = (mgr.options[:fetch] || Sidekiq::BasicFetch).new(mgr.options)
|
41
41
|
@reloader = Sidekiq.options[:reloader]
|
42
|
-
@logging = Sidekiq::JobLogger.new
|
42
|
+
@logging = (mgr.options[:job_logger] || Sidekiq::JobLogger).new
|
43
43
|
@retrier = Sidekiq::JobRetry.new
|
44
44
|
end
|
45
45
|
|
@@ -12,6 +12,7 @@ module Sidekiq
|
|
12
12
|
options[key.to_sym] = options.delete(key)
|
13
13
|
end
|
14
14
|
|
15
|
+
options[:id] ||= "Sidekiq-#{Sidekiq.server? ? "server" : "client"}-PID-#{$$}"
|
15
16
|
options[:url] ||= determine_redis_provider
|
16
17
|
|
17
18
|
size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 5) : 5)
|
data/lib/sidekiq/version.rb
CHANGED
data/lib/sidekiq/worker.rb
CHANGED
@@ -27,9 +27,9 @@ module Sidekiq
|
|
27
27
|
raise ArgumentError, "You cannot include Sidekiq::Worker in an ActiveJob: #{base.name}" if base.ancestors.any? {|c| c.name == 'ActiveJob::Base' }
|
28
28
|
|
29
29
|
base.extend(ClassMethods)
|
30
|
-
base.
|
31
|
-
base.
|
32
|
-
base.
|
30
|
+
base.sidekiq_class_attribute :sidekiq_options_hash
|
31
|
+
base.sidekiq_class_attribute :sidekiq_retry_in_block
|
32
|
+
base.sidekiq_class_attribute :sidekiq_retries_exhausted_block
|
33
33
|
end
|
34
34
|
|
35
35
|
def logger
|
@@ -142,7 +142,7 @@ module Sidekiq
|
|
142
142
|
Sidekiq::Client.new(pool).push(item)
|
143
143
|
end
|
144
144
|
|
145
|
-
def
|
145
|
+
def sidekiq_class_attribute(*attrs)
|
146
146
|
instance_reader = true
|
147
147
|
instance_writer = true
|
148
148
|
|
data/sidekiq.gemspec
CHANGED
@@ -23,10 +23,4 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_development_dependency 'minitest', '~> 5.10', '>= 5.10.1'
|
24
24
|
gem.add_development_dependency 'rake', '~> 10.0'
|
25
25
|
gem.add_development_dependency 'rails', '>= 3.2.0'
|
26
|
-
|
27
|
-
gem.add_development_dependency 'capybara', '~> 2.11'
|
28
|
-
gem.add_development_dependency 'poltergeist', '~> 1.12'
|
29
|
-
gem.add_development_dependency 'percy-capybara', '~> 2.3'
|
30
|
-
gem.add_development_dependency 'timecop', '~> 0.8'
|
31
|
-
gem.add_development_dependency 'mocha', '~> 1.1'
|
32
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -146,76 +146,6 @@ dependencies:
|
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: 3.2.0
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
name: capybara
|
151
|
-
requirement: !ruby/object:Gem::Requirement
|
152
|
-
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: '2.11'
|
156
|
-
type: :development
|
157
|
-
prerelease: false
|
158
|
-
version_requirements: !ruby/object:Gem::Requirement
|
159
|
-
requirements:
|
160
|
-
- - "~>"
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: '2.11'
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
name: poltergeist
|
165
|
-
requirement: !ruby/object:Gem::Requirement
|
166
|
-
requirements:
|
167
|
-
- - "~>"
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: '1.12'
|
170
|
-
type: :development
|
171
|
-
prerelease: false
|
172
|
-
version_requirements: !ruby/object:Gem::Requirement
|
173
|
-
requirements:
|
174
|
-
- - "~>"
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: '1.12'
|
177
|
-
- !ruby/object:Gem::Dependency
|
178
|
-
name: percy-capybara
|
179
|
-
requirement: !ruby/object:Gem::Requirement
|
180
|
-
requirements:
|
181
|
-
- - "~>"
|
182
|
-
- !ruby/object:Gem::Version
|
183
|
-
version: '2.3'
|
184
|
-
type: :development
|
185
|
-
prerelease: false
|
186
|
-
version_requirements: !ruby/object:Gem::Requirement
|
187
|
-
requirements:
|
188
|
-
- - "~>"
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
version: '2.3'
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: timecop
|
193
|
-
requirement: !ruby/object:Gem::Requirement
|
194
|
-
requirements:
|
195
|
-
- - "~>"
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: '0.8'
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
requirements:
|
202
|
-
- - "~>"
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
version: '0.8'
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: mocha
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
208
|
-
requirements:
|
209
|
-
- - "~>"
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: '1.1'
|
212
|
-
type: :development
|
213
|
-
prerelease: false
|
214
|
-
version_requirements: !ruby/object:Gem::Requirement
|
215
|
-
requirements:
|
216
|
-
- - "~>"
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: '1.1'
|
219
149
|
description: Simple, efficient background processing for Ruby.
|
220
150
|
email:
|
221
151
|
- mperham@gmail.com
|