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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e09b8656dabef56cc9db19da9ab961fae510cf9
4
- data.tar.gz: 18eac57149dde145c504ae79efe5c02064e82499
3
+ metadata.gz: 822b46902627b61973c1905dfed9223cfe254c11
4
+ data.tar.gz: 2896e3ca6cc155ffee742772774277ff3153de61
5
5
  SHA512:
6
- metadata.gz: a16ca326b2961c3e3e1db6f2835f00d65c0009b1778922e1b63b30c2e9921deed52ed8d44a83d3c7879fa44b41b80198c42db38a25860e7bfde239f60148246b
7
- data.tar.gz: b075f9b7471a25a389fc8c2ec3adfc31ee57fd80ab9688ecd91cff99cdfce11ff634667482e6cb46a3016302a733085b8b5b58d0c224e95a641d2aa4add7787f
6
+ metadata.gz: fb195a68d655ac395ff0b0779056b1cae681ee571286e10155dcd41ee85b433854a4677732ad3625147fc5c29d0fd3a51aeb9cb45b159e3d3b9dd21b9bc9f082
7
+ data.tar.gz: 7c28bc892c1b7aceb7207810091ce8725190889790ad3ce3812aa357416dbaa6f46968e2b8f653ad164171b5ea1ed114dec487a7c867293a7abebda565300858
@@ -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 = []
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Pool
3
- VERSION = '1.3.0'
3
+ VERSION = '1.4.0'
4
4
  end
5
5
  end
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.3.0
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-09 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq