arsenicum 0.2.1 → 0.2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arsenicum/core/worker.rb +6 -2
- data/lib/arsenicum/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: a97f7f6c419ed5ba11e0b4cc8ec0551af8400e5e
|
4
|
+
data.tar.gz: 6b3fdcf89f6ff38246d0486fc556ce181d3407c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec82a578e2770bac8bc5c10c125ad4681a648a6da7d331d79abb877417ea1549e3047f699042045bc3997f2116f4aa317b93fd45138d0e151ba32c4b2213772
|
7
|
+
data.tar.gz: 948332737fc834471d3330ab0f2572f9fcb6e2a38e5cd53f2550e36021e065ad16f93e59c548f8ee24c9090bab9ecd52410ef9e91a16332db5b98d50aad0bb68
|
@@ -27,9 +27,9 @@ class Arsenicum::Core::Worker
|
|
27
27
|
begin
|
28
28
|
loop do
|
29
29
|
begin
|
30
|
-
Arsenicum::Logger.debug {log_message_for 'to read initial command'}
|
30
|
+
Arsenicum::Logger.debug {log_message_for '[child]to read initial command'}
|
31
31
|
command = read_code in_child
|
32
|
-
Arsenicum::Logger.debug {log_message_for 'Command: 0x%02x' % command}
|
32
|
+
Arsenicum::Logger.debug {log_message_for '[child]Command: 0x%02x' % command}
|
33
33
|
break if command == COMMAND_STOP
|
34
34
|
task_id_string = read_string in_child
|
35
35
|
content = read_string in_child
|
@@ -44,9 +44,13 @@ class Arsenicum::Core::Worker
|
|
44
44
|
parameters = deserialize content
|
45
45
|
|
46
46
|
begin
|
47
|
+
Arsenicum::Logger.info {log_message_for "[child]Task start"}
|
48
|
+
Arsenicum::Logger.info {log_message_for "[child]Parameters: #{parameters.inspect}"
|
47
49
|
task.run *parameters
|
50
|
+
Arsenicum::Logger.info {log_message_for "[child]Task success"}
|
48
51
|
write_code out_child, 0
|
49
52
|
rescue Exception => e
|
53
|
+
Arsenicum::Logger.error {log_message_for "[child]Task Failure with #{e.class.name}#{":#{e.message}" if e.message}"}
|
50
54
|
write_code out_child, 1
|
51
55
|
write_string out_child, Marshal.dump(e)
|
52
56
|
end
|
data/lib/arsenicum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arsenicum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1
|
4
|
+
version: 0.2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- condor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|