|
def | parseAndRun (cls, *args, **kwargs) |
|
def | parseAndSubmit (cls, args=None, **kwargs) |
|
def | batchWallTime (cls, time, parsedCmd, numCores) |
| Return walltime request for batch job. More...
|
|
def | batchCommand (cls, args) |
| Return command to run CmdLineTask. More...
|
|
def | logOperation (self, operation, catch=False, trace=True) |
| Provide a context manager for logging an operation. More...
|
|
Runs the BatchCmdLineTask in parallel
Use this subclass of BatchCmdLineTask if you don't need to use the Pool
directly, but just want to iterate over many objects (like a multi-node
version of the '-j' command-line argument).
Definition at line 595 of file parallel.py.
def lsst.ctrl.pool.parallel.BatchCmdLineTask.batchWallTime |
( |
|
cls, |
|
|
|
time, |
|
|
|
parsedCmd, |
|
|
|
numCores |
|
) |
| |
|
inherited |
Return walltime request for batch job.
Subclasses should override if the walltime should be calculated
differently (e.g., addition of some serial time).
@param cls: Class
@param time: Requested time per iteration
@param parsedCmd: Results of argument parsing
@param numCores: Number of cores
Reimplemented in lsst.ctrl.pool.test.demoTask.DemoTask.
Definition at line 461 of file parallel.py.
def lsst.ctrl.pool.parallel.BatchCmdLineTask.logOperation |
( |
|
self, |
|
|
|
operation, |
|
|
|
catch = False , |
|
|
|
trace = True |
|
) |
| |
|
inherited |
Provide a context manager for logging an operation.
@param operation: description of operation (string)
@param catch: Catch all exceptions?
@param trace: Log a traceback of caught exception?
Note that if 'catch' is True, all exceptions are swallowed, but there may
be other side-effects such as undefined variables.
Definition at line 502 of file parallel.py.