spool 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spool/pool.rb +2 -0
- data/lib/spool/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: 5b4492481521b7b55d26016627fd3909680580b1
|
|
4
|
+
data.tar.gz: 9e03c6ce97cd4503e59e7b86cc067e013cd9d9ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 641eb87722c6dd0a37c3defed1e991d5a6d1732ba6da8805c85141aada2f0dd27f683d69271bc0911a215a391ed219abede9366c065bddd6aeec94ec0440d03b
|
|
7
|
+
data.tar.gz: d1cd8174966d17b16bac8e0c6dfea88abbdd18310e5a464f503a992524c5fabce5eda27e2f01c896c0550c595d5594830a5a7c7a49e358abd9d763e6e2d19a0f
|
data/lib/spool/pool.rb
CHANGED
|
@@ -84,6 +84,7 @@ module Spool
|
|
|
84
84
|
processes.delete_if { |p| !p.alive? }
|
|
85
85
|
|
|
86
86
|
to_restart = processes.select(&configuration.restart_condition)
|
|
87
|
+
logger.info(self.class) {"Restart condition successful in child processes: #{to_restart.map(&:pid)}"} if to_restart.any?
|
|
87
88
|
stop_processes to_restart
|
|
88
89
|
|
|
89
90
|
if configuration.processes > processes.count
|
|
@@ -166,6 +167,7 @@ module Spool
|
|
|
166
167
|
def stop_processes(processes_list)
|
|
167
168
|
processes_list.each do |p|
|
|
168
169
|
begin
|
|
170
|
+
logger.info(self.class) {"Going to kill process #{p.pid}, alive? => #{p.alive?}"}
|
|
169
171
|
p.send_signal configuration.stop_signal
|
|
170
172
|
rescue Exception => e
|
|
171
173
|
log_error e
|
data/lib/spool/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriel Naiman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: datacenter
|