pmux 0.1.2 → 0.1.3

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.
@@ -162,7 +162,7 @@ module Pmux
162
162
  files = adapter.get_files argv, options[:expand_glob]
163
163
  rescue
164
164
  STDERR.puts "Storage Error: #{$!}"
165
- return
165
+ abort
166
166
  end
167
167
  raise RuntimeError, "no hostname specified" if adapter.addrs.empty?
168
168
 
@@ -36,8 +36,10 @@ module Pmux
36
36
  @output_path = "#{@tmp_dir}/r#{@task['pindex']}"
37
37
  err_path = "#{@tmp_dir}/.err.#{$$}"
38
38
  err_msg = nil
39
+ #cmd_line = fix_cmd_line reducer_cmd,
40
+ # @paths.join(' '), @output_path, err_path, tmp_dir
39
41
  cmd_line = fix_cmd_line reducer_cmd,
40
- @paths.join(' '), @output_path, err_path, tmp_dir
42
+ "#{tmp_dir}/t*-#{@task['pindex']}", @output_path, err_path, tmp_dir
41
43
  Log.debug "system: #{cmd_line}"
42
44
  system cmd_line
43
45
  @exitstatus = $?.exitstatus
@@ -56,8 +58,10 @@ module Pmux
56
58
  @output_path = "#{@tmp_dir}/r#{@task['pindex']}"
57
59
  err_path = "#{@tmp_dir}/.rerr.#{$$}"
58
60
  err_msg = nil
61
+ #cmd_line = fix_cmd_line reducer_cmd,
62
+ # @paths.join(' '), nil, err_path, tmp_dir
59
63
  cmd_line = fix_cmd_line reducer_cmd,
60
- @paths.join(' '), nil, err_path, tmp_dir
64
+ "#{tmp_dir}/t*-#{@task['pindex']}", nil, err_path, tmp_dir
61
65
  Log.debug "popen: #{cmd_line}"
62
66
  pipeio = nil
63
67
  Dir.chdir(@tmp_dir) {pipeio = PipeIO.new cmd_line}
@@ -52,6 +52,7 @@ module Pmux
52
52
  # fail
53
53
  tmp_queue.push task
54
54
  fail_count += 1
55
+ break if fail_count >= fail_lim
55
56
  end
56
57
 
57
58
  loop_count += 1
@@ -1,3 +1,3 @@
1
1
  module Pmux
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pmux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-11 00:00:00.000000000 Z
12
+ date: 2013-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack-rpc