WorkQueue#
- class lsst.ctrl.bps.parsl.sites.WorkQueue(*args, **kwargs)#
Bases:
SiteConfigBase class configuraton for
WorkQueueExecutor.Subclasses must provide implementations for
.get_executorsand.select_executor. In.get_executors, the site-specificExecutionProvidermust be defined.Parameters#
Notes#
The following BPS configuration parameters are recognized, overriding the defaults:
port(int): The port used by work_queue. Default:9000.worker_options (`str`): Extra options to pass to work_queue workers. A typical option specifies the memory available per worker, e.g., ``"--memory=90000", which sets the available memory to 90 GB. Default:""wq_max_retries(int): The number of retries that work_queue will make in case of task failures. Set toNoneto have work_queue retry forever; set to1to have retries managed by Parsl. Default:1
Methods Summary
make_executor(label, provider, *[, port, ...])Return a
WorkQueueExecutor.Methods Documentation
- make_executor(label: str, provider: ExecutionProvider, *, port: int = 9000, worker_options: str = '', wq_max_retries: int = 1) ParslExecutor#
Return a
WorkQueueExecutor. Theprovidercontains the site-specific configuration.Parameters#
- label
str Label for executor.
- provider
ExecutionProvider Parsl execution provider, e.g.,
SlurmProvider.- port
int, optional Port used by work_queue. Default:
9000.- worker_options
str, optional Extra options to pass to work_queue workers, e.g.,
"--memory=90000". Default:"".- wq_max_retries
int, optional Number of retries for work_queue to attempt per job. Set to
Noneto have it try indefinitely; set to1to have Parsl control the number of retries. Default:1.
- label