sidekiq-pool 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/pool/cli.rb +5 -1
- data/lib/sidekiq/pool/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 822b46902627b61973c1905dfed9223cfe254c11
|
4
|
+
data.tar.gz: 2896e3ca6cc155ffee742772774277ff3153de61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb195a68d655ac395ff0b0779056b1cae681ee571286e10155dcd41ee85b433854a4677732ad3625147fc5c29d0fd3a51aeb9cb45b159e3d3b9dd21b9bc9f082
|
7
|
+
data.tar.gz: 7c28bc892c1b7aceb7207810091ce8725190889790ad3ce3812aa357416dbaa6f46968e2b8f653ad164171b5ea1ed114dec487a7c867293a7abebda565300858
|
data/lib/sidekiq/pool/cli.rb
CHANGED
@@ -124,6 +124,10 @@ module Sidekiq
|
|
124
124
|
@wait_until_child_loaded = Integer(arg)
|
125
125
|
end
|
126
126
|
|
127
|
+
o.on '--suspend-before-graceful-reload', "Send USR1 singal to old pool when doing graceful reload" do |arg|
|
128
|
+
@suspend_before_graceful_reload = arg
|
129
|
+
end
|
130
|
+
|
127
131
|
o.on '-V', '--version', "Print version and exit" do |arg|
|
128
132
|
puts "Sidekiq #{Sidekiq::VERSION}"
|
129
133
|
die(0)
|
@@ -212,7 +216,7 @@ module Sidekiq
|
|
212
216
|
|
213
217
|
# Signal old pool
|
214
218
|
# USR1 tells Sidekiq it will be shutting down in near future.
|
215
|
-
signal_to_pool('USR1')
|
219
|
+
signal_to_pool('USR1') if @suspend_before_graceful_reload
|
216
220
|
|
217
221
|
# Reset pool
|
218
222
|
@pool = []
|
data/lib/sidekiq/pool/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-pool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurynas Butkus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|