CmdLineFwk¶
- class lsst.ctrl.mpexec.CmdLineFwk¶
Bases:
objectPipelineTask framework which executes tasks from command line.
In addition to executing tasks this activator provides additional methods for task management like dumping configuration or execution chain.
Attributes Summary
Methods Summary
makeGraph(pipeline_graph_factory, args)Build a graph from command line arguments.
makePipeline(args)Build a pipeline from command line arguments.
preExecInitQBB(task_factory, args)runGraphQBB(task_factory, args)runPipeline(graph, taskFactory, args[, butler])Execute complete QuantumGraph.
Attributes Documentation
- MP_TIMEOUT = 2592000¶
Methods Documentation
- makeGraph(pipeline_graph_factory: PipelineGraphFactory | None, args: SimpleNamespace) QuantumGraph | None¶
Build a graph from command line arguments.
- Parameters:
- pipeline_graph_factory
PipelineGraphFactory Factory that holds a pipeline and can produce a pipeline graph. Must be
Noneif and only if graph is read from a file.- args
types.SimpleNamespace Parsed command line.
- pipeline_graph_factory
- Returns:
- graph
QuantumGraphorNone If resulting graph is empty then
Noneis returned.
- graph
- makePipeline(args: SimpleNamespace) Pipeline¶
Build a pipeline from command line arguments.
- Parameters:
- args
types.SimpleNamespace Parsed command line.
- args
- Returns:
- pipeline
Pipeline Newly-constructed pipeline.
- pipeline
- preExecInitQBB(task_factory: TaskFactory, args: SimpleNamespace) None¶
- runGraphQBB(task_factory: TaskFactory, args: SimpleNamespace) None¶
- runPipeline(graph: QuantumGraph, taskFactory: TaskFactory, args: SimpleNamespace, butler: Butler | None = None) None¶
Execute complete QuantumGraph.
- Parameters:
- graph
QuantumGraph Execution graph.
- taskFactory
TaskFactory Task factory.
- args
types.SimpleNamespace Parsed command line.
- butler
Butler, optional Data Butler instance, if not defined then new instance is made using command line options.
- graph