sidekiq 5.0.3 → 5.0.4
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/Changes.md +5 -0
- data/Pro-Changes.md +6 -0
- data/lib/sidekiq/delay.rb +1 -0
- data/lib/sidekiq/redis_connection.rb +10 -2
- data/lib/sidekiq/version.rb +1 -1
- data/sidekiq.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5eafdd7cf02082ddca6e556df6c2ef191c20380
|
4
|
+
data.tar.gz: eb520ecf4dd12b4c95da1d1b3765958aaf0f2e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ea17045bfd9f870b98af2292ff9490b752cd47bcdfdd8cfc73a5d4779e4ce56635b5ff7f4d76b6a791ff9e60b06281fc955e5cc1d3201f78a0d3ea995237bb
|
7
|
+
data.tar.gz: 784e604fac0fe0ffd914c87a973717de466b2b5a68bb710cddedd702ba39d4c2d6489a3be98ad868c8139f99d7cca231de593377bc268ca232c7c2dca585c3c8
|
data/Changes.md
CHANGED
@@ -2,6 +2,11 @@
|
|
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.4
|
6
|
+
-----------
|
7
|
+
|
8
|
+
- Fix "slow startup" performance regression from 5.0.2. [#3525]
|
9
|
+
|
5
10
|
5.0.3
|
6
11
|
-----------
|
7
12
|
|
data/Pro-Changes.md
CHANGED
data/lib/sidekiq/delay.rb
CHANGED
@@ -12,7 +12,7 @@ module Sidekiq
|
|
12
12
|
options[key.to_sym] = options.delete(key)
|
13
13
|
end
|
14
14
|
|
15
|
-
options[:id]
|
15
|
+
options[:id] = "Sidekiq-#{Sidekiq.server? ? "server" : "client"}-PID-#{$$}" if !options.has_key?(:id)
|
16
16
|
options[:url] ||= determine_redis_provider
|
17
17
|
|
18
18
|
size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 5) : 5)
|
@@ -101,7 +101,15 @@ module Sidekiq
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def determine_redis_provider
|
104
|
-
|
104
|
+
# If you have this in your environment:
|
105
|
+
# MY_REDIS_URL=redis://hostname.example.com:1238/4
|
106
|
+
# then set:
|
107
|
+
# REDIS_PROVIDER=MY_REDIS_URL
|
108
|
+
# and Sidekiq will find your custom URL variable with no custom
|
109
|
+
# initialization code at all.
|
110
|
+
ENV[
|
111
|
+
ENV['REDIS_PROVIDER'] || 'REDIS_URL'
|
112
|
+
]
|
105
113
|
end
|
106
114
|
|
107
115
|
end
|
data/lib/sidekiq/version.rb
CHANGED
data/sidekiq.gemspec
CHANGED
@@ -15,6 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.name = "sidekiq"
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = Sidekiq::VERSION
|
18
|
+
gem.required_ruby_version = ">= 2.2.2"
|
19
|
+
|
18
20
|
gem.add_dependency 'redis', '~> 3.3', '>= 3.3.3'
|
19
21
|
gem.add_dependency 'connection_pool', '~> 2.2', '>= 2.2.0'
|
20
22
|
gem.add_dependency 'concurrent-ruby', '~> 1.0'
|
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.4
|
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-
|
11
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -281,7 +281,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
281
|
requirements:
|
282
282
|
- - ">="
|
283
283
|
- !ruby/object:Gem::Version
|
284
|
-
version:
|
284
|
+
version: 2.2.2
|
285
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
286
|
requirements:
|
287
287
|
- - ">="
|