Yaml Loader
dagpipe.yaml_loader
Summary
Loads dagpipe pipelines from YAML configuration.
Creates fully configured pipeline objects from declarative YAML definitions,
including Schema, State subclasses, Node instances, Graph topology,
and initial payloads.
Classes
Pipeline
dataclass
Executable pipeline created from YAML configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
engine |
Engine
|
Execution engine responsible for running the pipeline. |
state_cls |
Type[State]
|
Dynamically created |
initial_payload |
Payload
|
Default payload used when execution begins. |
Notes
Responsibilities:
1 2 3 | |
Functions
run
Execute the pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
payload_override |
Mapping[str, Any]
|
Payload values overriding initial payload. |
None
|
Returns:
| Type | Description |
|---|---|
list[State]
|
list[State]: Terminal execution states. |
Notes
Responsibilities:
1 2 | |
Functions
load_pipeline
Load pipeline from YAML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path |
str
|
Path to YAML configuration file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Pipeline |
Pipeline
|
Executable pipeline instance. |
Notes
Responsibilities:
1 2 3 | |