echo "$wpid still alive" willwait=1 fi; done; echo mustwait=$willwait done; echo "quitting the multinode wrapper script" ''' prog.wrapper = sh_download_multinode_wrapper prog.initialize() # Parameter checking if len(prog.options.jobservice_url) < 1 : sys.exit("ERROR: the --jobservice-url paramter is mandatory.") if len(prog.options.filesystem_url) < 1 : sys.exit("ERROR: the --filesystem-url paramter is mandatory.") import time for i in range(prog.options.N_WORKERS): #Configure GANGA job j = Job()
echo "$wpid still alive" willwait=1 fi; done; echo mustwait=$willwait done; echo "quitting the multinode wrapper script" ''' prog.wrapper = sh_download_multinode_wrapper prog.parser.description = "Submit worker agents locally to mulitple nodes (possibly to different ones -> currently we use 'localhost' a number of times as a demponstration). You must have ssh keys setup correctly to be able to login without password. "+prog.parser.description prog.initialize() # let's expand our special template here prog.wrapper = prog.wrapper.replace('###NODES###','localhost '*prog.nnodes) for i in range(prog.options.N_WORKERS): j = Job() j.backend=Local() j.outputsanbox.apppend('*-stdouterr.txt') # make sure we get back all of the output of the workernodes prog.submit_worker(j)