pipeline.RunRecord
The run record, written as reports/record.json.
Usage
pipeline.RunRecord(**data)Fields:
schema_versionand kind: the format; load refuses another version.- run: identifier, times, steps run and carried, status.
project: the project configuration as run, defaults filled in (or None).pipeline: the step names in order.- config: each step’s configuration as run, every default filled in.
results: each step’s StepResult.to_dict().checks: every gate check of every step, with its step.overrides: every configured gate override, with its step.- environment: Python, platform and package versions.
inputs: a fingerprint of every input read.datasets: each step’s dataset fingerprint and path.
Methods
| Name | Description |
|---|---|
| dump() | Write the record to path as UTF-8 JSON. |
| dumps() | The record as JSON text, two-space indented, with a final newline. |
| from_dict() | A record from to_dict() output; another schema version is a RecordError. |
| load() | Read a record written by dump. |
| result() |
The step’s result rebuilt as its own Result type, with dataset=None.
|
| to_dict() | The record as strict JSON-safe data. |
dump()
Write the record to path as UTF-8 JSON.
Usage
dump(path)dumps()
The record as JSON text, two-space indented, with a final newline.
Usage
dumps()from_dict()
A record from to_dict() output; another schema version is a RecordError.
Usage
from_dict(data)load()
Read a record written by dump.
Usage
load(path)result()
The step’s result rebuilt as its own Result type, with dataset=None.
Usage
result(step)to_dict()
The record as strict JSON-safe data.
Usage
to_dict()