Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(6) | Call(6) | Derive(0) | Import(0)
This method will not return until all process in the environment have called it. This is a wrapper around MPI_Barrier which handles the case where MPI is not available
src/p/e/PEATDB-2.3/PEATSA/WebApp/WebScript.py PEATDB(Download)
self.job.setQueueStatusMessage('Your job is running') self.environment.wait() #Set the $HOME environment variable for apache to the path to the .WHAT_IF file
os.mkdir(self.parser.outputDirectory()) self.environment.wait() def main(self):
#the others will be waiting elsewhere in the code #In this case, passing True here causes all the processes to exit. environment.wait(error=True) #This is only called if we are in serial environment.exit(1)
print __doc__ environment.wait(error=True) environment.exit(1) except SystemExit, data:
print "Program exited with exit code %d" % data.message environment.wait(error=True) environment.exit(1) except BaseException, data: