Skip to content

RunResult

RunResult dataclass

RunResult(workspace: Path, results: Mapping[str, Mapping[str, Any]], artifacts: tuple[Path, ...], manifest: Path)

Completed or partial execution state returned by the workflow runner.

Attributes:

Name Type Description
workspace Path

Resolved root directory for the run.

results Mapping[str, Mapping[str, Any]]

Task return values grouped by stage.

artifacts tuple[Path, ...]

Files matching the workflow output patterns.

manifest Path

JSON execution record; not a serialized copy of callback values.

Note

The runner constructs this object. Use result() to inspect callback returns or ProcessResult objects without confusing them with output files.

Methods:

Name Description
result

Return the recorded value for a completed task.

Methods:

result

result(stage: str, task: str) -> Any

Return the recorded value for a completed task.

Parameters:

Name Type Description Default
stage str

Stage name.

required
task str

Task name within the stage.

required

Returns:

Name Type Description
value Any

Python callback value or ProcessResult.

Raises:

Type Description
KeyError

The task has no result, including tasks not reached after failure.