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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f05fd4b532ac47751906ba9b950a6f49d94d53a5
4
- data.tar.gz: 6586221066d7638def8ee4d2bb1f312ce9d6d654
3
+ metadata.gz: b0825287f7439f75c6107577d3049a4585014aa5
4
+ data.tar.gz: 54e2497554a157f5b6215af7fda9a0536248a964
5
5
  SHA512:
6
- metadata.gz: 2c921b541c7b22d3a86219fb20276df14f58a28e4995ea1f8b02c2435e2311b44187a1061cd1087589b60295af73014c38c9272572035fb83462a1aabe493914
7
- data.tar.gz: 427b6843a773376df7bcfb92986ce5a759fdb1682c7bc6366b9ca4d7510206f97e398ff6366db0b1c023a6db408cf7fd4fd3d753498eade16659a69e513334d7
6
+ metadata.gz: a94b20404701519ff5fa206a101de49384f6d3d218b565f7c6f8aace5ba3e7594ef288787e3beac98ac9b0099d1ad69996780014b834c8a36ecf64175e7f7849
7
+ data.tar.gz: 4739bbfa437a795bffdbbf105867cf302f646d9d2e7d73335b2b714dbf3e38b5e1bef2a6364ba1caf304cdcd23235d9f9752d439de9ef28ab25969724bc66396
@@ -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
 
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.1.50'
6
+ VERSION = ENV['gem_version'] || '0.1.51'
7
7
 
8
8
  end
9
9
 
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.50
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-06-06 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake