ParslService#
- class lsst.ctrl.bps.parsl.ParslService(config)#
Bases:
BaseWmsServiceParsl-based implementation for the WMS interface.
Methods Summary
prepare(config, generic_workflow[, out_prefix])Convert a generic workflow to a Parsl pipeline.
restart(out_prefix)Restart a workflow from the point of failure.
submit(workflow, **kwargs)Submit a single WMS workflow.
Methods Documentation
- prepare(config: BpsConfig, generic_workflow: GenericWorkflow, out_prefix: str | None = None) BaseWmsWorkflow#
Convert a generic workflow to a Parsl pipeline.
Parameters#
- config
lsst.ctrl.bps.BpsConfig Configuration of the workflow.
- generic_workflow
lsst.ctrl.bps.generic_workflow.GenericWorkflow Generic representation of a single workflow.
- out_prefix
strorNone Prefix for WMS output files.
Returns#
- workflow
ParslWorkflow Workflow that will execute the jobs.
- config
- restart(out_prefix: str) tuple[str, str, str]#
Restart a workflow from the point of failure.
Parameters#
- out_prefix
str Id for workflow to be restarted. For this service, it is the prefix for WMS files, also known as the
submitPath.
Returns#
- wms_id
str Id of the restarted workflow. If restart failed, it will be set to None.
- run_name
str Name of the restarted workflow. If restart failed, it will be set to None.
- message
str A message describing any issues encountered during the restart. If there were no issue, an empty string is returned.
- out_prefix
- submit(workflow: BaseWmsWorkflow, **kwargs: Any)#
Submit a single WMS workflow.
Parameters#
- workflow
lsst.ctrl.bps.BaseWmsWorkflow Prepared WMS Workflow to submit for execution.
- **kwargs
Any Additional modifiers to the configuration.
- workflow