m3resp.WorkflowResult#
- class m3resp.WorkflowResult(name, context, outputs=<factory>, processing_run_id=None, run_id=None, status='pending', started_at=None, finished_at=None, duration_seconds=None, compiled_workflow=None, step_records=(), diagnostics=(), warnings=(), execution_context=None, resolved_output_dir=None, manifest_path=None)[source]#
Results, timing and execution records for one workflow run.
- Variables:
name (str) – Workflow name.
context (WorkflowContext) – Shared values and the session used by the steps.
outputs (dict[str, Any]) – Produced context values and externally supplied values, excluding the session and keys named in spec.inputs.
processing_run_id (str | None) – Stored ProcessingRun identifier when a data-model recorder is attached, otherwise None.
run_id (str | None) – Identifier used in execution records and progress events.
status (WorkflowStatus) – Run state; completed executions are succeeded or cancelled.
started_at (str | None) – Run start time as an ISO 8601 UTC string, or None.
finished_at (str | None) – Run finish time as an ISO 8601 UTC string, or None.
duration_seconds (float | None) – Elapsed execution time in seconds, or None.
compiled_workflow (CompiledWorkflow | None) – Ordered description of the steps and resolved settings.
step_records (tuple[StepExecutionRecord, ...]) – Records of steps that executed, in execution order.
diagnostics (tuple[Diagnostic, ...]) – Structural diagnostics collected before execution.
warnings (tuple[CapturedWarning, ...]) – Python warnings captured during executed steps, in order.
execution_context (ExecutionContext | None) – Recorded software versions and seed information.
resolved_output_dir (Path | None) – Shared output directory, when supplied in context.
manifest_path (Path | None) – Run-manifest path when written by run_spec.
- Parameters:
name (str)
context (WorkflowContext)
processing_run_id (str | None)
run_id (str | None)
status (WorkflowStatus)
started_at (str | None)
finished_at (str | None)
duration_seconds (float | None)
compiled_workflow (CompiledWorkflow | None)
step_records (tuple[StepExecutionRecord, ...])
diagnostics (tuple[Diagnostic, ...])
warnings (tuple[CapturedWarning, ...])
execution_context (ExecutionContext | None)
resolved_output_dir (Path | None)
manifest_path (Path | None)
Methods
Return a context value by key.
Attributes
The ProcessingRun id record_workflow_result created for this run, when a DataModelRecorder is attached to the session.
Return the session used by this workflow's context.
- compiled_workflow: CompiledWorkflow | None = None#
- context: WorkflowContext#
- processing_run_id: str | None = None#
The ProcessingRun id record_workflow_result created for this run, when a DataModelRecorder is attached to the session. None otherwise (including for a session without a recorder).
- status: WorkflowStatus = 'pending'#