Skip to content

Commit

Permalink
Removing obsolet log - examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
iced committed Apr 15, 2012
1 parent d7de45c commit e0f5b9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.2.1
0.2.2
10 changes: 5 additions & 5 deletions examples/ruby/master_slave/master_worker.rb
Expand Up @@ -4,19 +4,19 @@
client = IronWorkerNG::Client.new(:token => iron_io_token,
:project_id => iron_io_project_id)

log 'Running slave workers...'
puts 'Running slave workers...'
task_ids = []
params[:args].each do |arg|
log "Queueing slave with arg=#{arg.to_s}"
puts "Queueing slave with arg=#{arg.to_s}"
task_ids << client.tasks.create('SlaveWorker', { :arg => arg }).id
end

log 'Retriving results from slaves logs'
puts 'Retriving results from slaves logs'
results = task_ids.map do |id|
client.tasks.wait_for(id)
client.tasks.log(id).to_i
end

log "Sum = #{ results.inject(:+) }"
puts "Sum = #{ results.inject(:+) }"

log 'Done'
puts 'Done'
2 changes: 1 addition & 1 deletion examples/ruby/master_slave/slave_worker.rb
@@ -1 +1 @@
log params[:arg].inject(:+)
puts params[:arg].inject(:+)

0 comments on commit e0f5b9c

Please sign in to comment.