henry-container 0.1.50 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/henry/container.rb +11 -0
- data/lib/henry/container/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: b0825287f7439f75c6107577d3049a4585014aa5
|
4
|
+
data.tar.gz: 54e2497554a157f5b6215af7fda9a0536248a964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94b20404701519ff5fa206a101de49384f6d3d218b565f7c6f8aace5ba3e7594ef288787e3beac98ac9b0099d1ad69996780014b834c8a36ecf64175e7f7849
|
7
|
+
data.tar.gz: 4739bbfa437a795bffdbbf105867cf302f646d9d2e7d73335b2b714dbf3e38b5e1bef2a6364ba1caf304cdcd23235d9f9752d439de9ef28ab25969724bc66396
|
data/lib/henry/container.rb
CHANGED
@@ -100,6 +100,17 @@ module Henry
|
|
100
100
|
rescue Timeout::Error
|
101
101
|
task.execution.code = 'ERROR'
|
102
102
|
task.execution.message = 'The task execution exeeded the timeout.'
|
103
|
+
ensure
|
104
|
+
begin
|
105
|
+
`ps o pid= --ppid #{Process.pid}`.scan(/\d+/).each do |pid|
|
106
|
+
begin
|
107
|
+
Process.kill('KILL', pid.to_i)
|
108
|
+
rescue Errno::ESRCH
|
109
|
+
end
|
110
|
+
end
|
111
|
+
rescue Errno::ENOENT
|
112
|
+
warn 'Can not cleanup this process children'
|
113
|
+
end
|
103
114
|
end
|
104
115
|
end
|
105
116
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: henry-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Decurnex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|