toiler 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toiler/cli.rb +7 -2
- data/lib/toiler/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: 5eedc8a169886aea91aebb35f7d10dbdc9ac5245
|
4
|
+
data.tar.gz: 1c04a0571248d7aacd46ad4c64ec56d4f8d6fcc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fd47ee9148c6e1b21abe50e2d0964c3ca1e40c8b2dfaa0991dabd39a1d65b74b43b30e2087ffa01b74ff2b31831881a10be06539242214251a579876ce5c6be
|
7
|
+
data.tar.gz: 005186aea9489a9e2eb8175c93e20faded2adb7ba0dc41f24a767309109769947f09baea17381a769932e29a364bba104d3de316aa58022cdbf4073eb57675c1
|
data/lib/toiler/cli.rb
CHANGED
@@ -34,8 +34,13 @@ module Toiler
|
|
34
34
|
handle_signal(readable_io.first[0].gets.strip)
|
35
35
|
end
|
36
36
|
rescue Interrupt
|
37
|
-
|
38
|
-
supervisor.ask(:terminate!).wait(60)
|
37
|
+
Toiler.logger.info 'Received Interrupt, Waiting up to 60 seconds for actors to finish...'
|
38
|
+
success = supervisor.ask(:terminate!).wait(60)
|
39
|
+
if success
|
40
|
+
Toiler.logger.info 'Supervisor successfully terminated'
|
41
|
+
else
|
42
|
+
Toiler.logger.info 'Timeout waiting dor Supervisor to terminate'
|
43
|
+
end
|
39
44
|
ensure
|
40
45
|
exit 0
|
41
46
|
end
|
data/lib/toiler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Schepens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|