Yaml Loader
dagpipe.yaml_loader
Loads dagpipe pipelines from YAML configuration.
Summary
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 State subclass with configured schema. |
initial_payload |
Payload
|
Default payload used when execution begins. |
Notes
Responsibilities:
1 2 | |
Functions
run
Execute pipeline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
payload_override |
Mapping[str, Any]
|
Payload values overriding initial payload. |
None
|
Returns:
| Type | Description |
|---|---|
|
list[State]: Terminal execution states. |
Notes
Responsibilities:
1 | |
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 | |