2.27.2.6. pycsamt.pipeline._history#
Append-only run history log for Pipeline.run(..., history=...).
One compact JSON line per run — not full StepResult objects — so the
log stays greppable and cheap to append/read even across many runs. This
is deliberately a plain JSON-lines file, not a database: it exists so a
user can answer “how did my last N runs compare,” not to be a query engine.
Functions
|
Append one JSON line summarizing result to path. |
|
|
|
Read back previously logged run summaries, oldest first. |
- pycsamt.pipeline._history.append_run(path, result)[source]
Append one JSON line summarizing result to path.
Creates parent directories as needed. Never raises on a write failure when called from
Pipeline.run()— that call site wraps this in its own try/except and warns instead, the same “a logging feature must not abort the run” posture as every other optional side effect in the run loop (QC plots, intermediate snapshots).- Parameters:
path (str | Path)
result (PipelineResult)
- Return type:
None