ATLAS Offline Software
|
ParallelJobProcessor: a multiple-process processor of Job objects. More...
Public Member Functions | |
def | __init__ (self, jobSubmission=None, numberOfProcesses=multiprocessing.cpu_count()) |
initialisation method that accepts submissions and starts pool More... | |
def | __str__ (self) |
return an object self-description string More... | |
def | printout (self) |
print in a human-readable way the items of the object self More... | |
def | submit (self, jobSubmission=None) |
submit a Job object or a JobGroup object for processing More... | |
def | getResults (self) |
get results of JobGroup object submission More... | |
def | statusReport (self) |
return a status report string More... | |
Public Attributes | |
jobSubmission | |
numberOfProcesses | |
className | |
status | |
countOfJobs | |
countOfRemainingJobs | |
pool | |
listOfNamesOfRemainingJobs | |
Private Member Functions | |
def | _abort (self) |
abort parallel job processor More... | |
def | _terminate (self) |
terminate parallel job processor More... | |
ParallelJobProcessor: a multiple-process processor of Job objects.
jobSubmission | Job object or JobGroup object for submission |
numberOfProcesses | the number of processes in the process pool |
Definition at line 867 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.__init__ | ( | self, | |
jobSubmission = None , |
|||
numberOfProcesses = multiprocessing.cpu_count() |
|||
) |
initialisation method that accepts submissions and starts pool
This method is the initialisation method of the parallel job processor. It accepts input JobGroup object submissions and prepares a pool of workers.
Definition at line 873 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.__str__ | ( | self | ) |
return an object self-description string
This method returns an object description string consisting of a listing of the items of the object self.
Definition at line 908 of file trfUtils.py.
|
private |
abort parallel job processor
This method aborts the parallel job processor. It is used typically when an exception is raised.
Definition at line 1214 of file trfUtils.py.
|
private |
terminate parallel job processor
This method terminates the parallel job processor. It terminates the subprocesses of the parallel job processor. It is used typically when terminating the parallel job processor on successful completion of job processing and when aborting the parallel job processor.
Definition at line 1227 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.getResults | ( | self | ) |
get results of JobGroup object submission
This method returns an ordered list of results for jobs submitted.
Definition at line 1008 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.printout | ( | self | ) |
print in a human-readable way the items of the object self
This function prints in a human-readable way the items of the object self.
Definition at line 920 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.statusReport | ( | self | ) |
return a status report string
This method returns a status report string, detailing information on the JobGroup submission and on the job processing status.
Definition at line 1157 of file trfUtils.py.
def python.trfUtils.ParallelJobProcessor.submit | ( | self, | |
jobSubmission = None |
|||
) |
submit a Job object or a JobGroup object for processing
This method submits a specified Job object or JobGroup object for processing. On successful submission, it returns the value 0.
Definition at line 928 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.className |
Definition at line 876 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.countOfJobs |
Definition at line 882 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.countOfRemainingJobs |
Definition at line 883 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.jobSubmission |
Definition at line 874 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.listOfNamesOfRemainingJobs |
Definition at line 949 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.numberOfProcesses |
Definition at line 875 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.pool |
Definition at line 884 of file trfUtils.py.
python.trfUtils.ParallelJobProcessor.status |
Definition at line 877 of file trfUtils.py.