lsst.ctrl.pool 22.0.1-3-g6ea9dee+36e73f519e
Public Member Functions | Public Attributes | List of all members
lsst.ctrl.pool.parallel.BatchTaskRunner Class Reference
Inheritance diagram for lsst.ctrl.pool.parallel.BatchTaskRunner:

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def run (self, parsedCmd)
 
def __call__ (self, cache, args)
 

Public Attributes

 numProcesses
 

Detailed Description

Run a Task individually on a list of inputs using the MPI process pool

Definition at line 541 of file parallel.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.ctrl.pool.parallel.BatchTaskRunner.__init__ (   self,
args,
**  kwargs 
)
Constructor

Warn if the user specified multiprocessing.

Definition at line 544 of file parallel.py.

Member Function Documentation

◆ __call__()

def lsst.ctrl.pool.parallel.BatchTaskRunner.__call__ (   self,
  cache,
  args 
)
Run the Task on a single target

Strips out the process pool 'cache' argument.

'args' are those arguments provided by the getTargetList method.

Brings down the entire job if an exception is not caught (i.e., --doraise).

Definition at line 583 of file parallel.py.

◆ run()

def lsst.ctrl.pool.parallel.BatchTaskRunner.run (   self,
  parsedCmd 
)
Run the task on all targets

Sole input is the result of parsing the command-line with the ArgumentParser.

Output is None if 'precall' failed; otherwise it is a list of calling ourself
on each element of the target list from the 'getTargetList' method.

Definition at line 555 of file parallel.py.

Member Data Documentation

◆ numProcesses

lsst.ctrl.pool.parallel.BatchTaskRunner.numProcesses

Definition at line 553 of file parallel.py.


The documentation for this class was generated from the following file: