StepResult#
- class rapidtools.jobs.StepResult(id: str, type: str, status: str = 'pending', started_at: str | None = None, finished_at: str | None = None, duration_s: float | None = None, outputs: dict[str, ~pathlib.Path]=<factory>, files: list[dict[str, ~typing.Any]]=<factory>, summary: dict[str, ~typing.Any]=<factory>, data: Any = None, error: dict[str, str] | None=None, objects: dict[str, ~typing.Any]=<factory>, settings: Any = None)[source]#
Bases:
objectThe outcome of one step.
- Variables:
id (str) – The step’s
id.type (str) – Its step type.
status (str) – One of
STEP_STATUSES.started_at (str | None) – UTC start time.
finished_at (str | None) – UTC end time.
duration_s (float | None) – Wall-clock seconds.
outputs (dict[str, Path]) – Declared outputs that were written, by name. An output the step did not produce is absent.
files (list[dict[str, Any]]) – Other files the step wrote, each with
label,pathandkind.summary (dict[str, Any]) – Small facts about the run, e.g.
{'n_assets': 179}.data (Any) – A JSON result that is not a file.
error (dict[str, str] | None) –
{'type', 'message'}of the failure, whenstatusis'error'or'canceled'.objects (dict[str, Any]) – In-memory results for callers in the same process, e.g.
objects['assets']is the live collection. Not written to the result file.settings (Any) – The settings object the step ran with. Not written to the result file.
Methods
Return the step outcome as it appears in the result file.