Displaying 1 result from an estimated 1 matches for "remote_command_work".
Did you mean:
remote_command_worker
2008 Jan 22
9
Cannot connect when spawning new workers on demand
...ef uitvoeren
# put selected servers in a session
session[:selectedservers] = params[:servers]
session[:running_cmd] = 1
@selected_servers = System.find_all_by_id(params[:servers])
@selected_servers.each do |svr|
# spawn new process
MiddleMan.new_worker(:worker => :remote_command_worker, :job_key
=> svr.name)
MiddleMan.ask_work(:worker => :remote_command_worker, :job_key =>
svr.name, :worker_method => :do_work, :data => {:svr =>
svr.name, :command =>
MultiComCommand.find_by_id(params[:commando]).command})
end
end
When I select only a few servers...