upxo.meshing.gbconformant.pipeline.runner module
Running stages: one stage at a time, or the whole sequence up to a chosen stage.
- class upxo.meshing.gbconformant.pipeline.runner.PipelineRunner(state: PipelineState, handlers: dict[str, Callable] | None = None, *, use_defaults: bool = True)[source]
Bases:
objectExecute stages against a
PipelineState.- run_stage(stage_id: str) StageStatus[source]
- upxo.meshing.gbconformant.pipeline.runner.run_pipeline(state: PipelineState, *, through: str = 'smooth_interfaces', skip_done: bool = False, on_event: Callable[[dict], None] | None = None, handlers: dict[str, Callable] | None = None) list[str][source]
Run the stages in order up to and including
through.A stage whose switch is off is recorded as skipped. With
skip_donea stage that already holds results (status OK or Skipped) is not run again.on_eventreceives one dict per step:start,done,already_done,skipped,progressandfailed, each naming itsstage. Returns the ids of the stages that ran; a failing stage raises.