class documentation
class JobExecutor(object):
Class which manages the submission and execution of multiple jobs.
Note that instances of this class should not be reused between GetResults() calls.
| Method | __init__ |
Undocumented |
| Method | |
Adds a job ID to the internal queue. |
| Method | |
Wait for and return the results of all jobs. |
| Method | |
Record a job for later submit. |
| Method | |
Submit all pending jobs. |
| Method | |
Wait for job results or only print the job IDs. |
| Instance Variable | cl |
Undocumented |
| Instance Variable | feedback |
Undocumented |
| Instance Variable | jobs |
Undocumented |
| Instance Variable | opts |
Undocumented |
| Instance Variable | queue |
Undocumented |
| Instance Variable | verbose |
Undocumented |
| Static Method | _ |
Helper function for formatting name. |
| Method | _ |
Choose a non-waiting/queued job to poll next. |
| Instance Variable | _counter |
Undocumented |
Wait for and return the results of all jobs.
| Returns | |
| list | list of tuples (success, job results), in the same order as the submitted jobs; if a job has failed, instead of the result there will be the error message |
Record a job for later submit.
| Parameters | |
| name:string | a description of the job, will be used in WaitJobSet |
| *ops | Undocumented |