|
lsst.ctrl.pool
19.0.0-2-g260436e+42
|
Public Member Functions | |
| 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... | |
Definition at line 432 of file parallel.py.
| def lsst.ctrl.pool.parallel.BatchCmdLineTask.batchCommand | ( | cls, | |
| args | |||
| ) |
Return command to run CmdLineTask.
| cls | Class |
| args | Parsed batch job arguments (from BatchArgumentParser) |
Definition at line 476 of file parallel.py.
| def lsst.ctrl.pool.parallel.BatchCmdLineTask.batchWallTime | ( | cls, | |
| time, | |||
| parsedCmd, | |||
| numCores | |||
| ) |
Return walltime request for batch job.
Subclasses should override if the walltime should be calculated differently (e.g., addition of some serial time).
| cls | Class |
| time | Requested time per iteration |
| parsedCmd | Results of argument parsing |
| numCores | Number of cores |
Definition at line 461 of file parallel.py.
| def lsst.ctrl.pool.parallel.BatchCmdLineTask.logOperation | ( | self, | |
| operation, | |||
catch = False, |
|||
trace = True |
|||
| ) |
Provide a context manager for logging an operation.
| operation | description of operation (string) |
| catch | Catch all exceptions? |
| 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.
| def lsst.ctrl.pool.parallel.BatchCmdLineTask.parseAndSubmit | ( | cls, | |
args = None, |
|||
| kwargs | |||
| ) |
Definition at line 435 of file parallel.py.
1.8.13