Skip to content

WorkflowExecutionError

junjo.WorkflowExecutionError

Kind: Exception Class

SDK version: 0.64.0

Documentation channel: Next source preview

WorkflowExecutionError(message: str, *, run_id: str, definition_id: str, name: str, state: StateT, node_execution_counts: Mapping[str, int], state_is_terminal: bool = True, terminalization_error: BaseException | None = None)

View source

Failure raised after a Workflow or Subflow execution was admitted.

The original execution failure is retained as __cause__. The error itself owns the trustworthy Junjo execution identity and a detached final Store snapshot, so application code does not need Hooks or telemetry queries merely to persist the failed run’s identity.

Name Type Description Default
message str Safe summary of the failed execution boundary.
run_id str Unique runtime identity of the admitted execution.
definition_id str Stable in-process Workflow definition identity.
name str Configured Workflow or Subflow name.
state StateT Detached final state snapshot collected during terminalization.
state_is_terminal bool Whether terminal Store evidence collection
completed. When False, state is the last detached snapshot
available during emergency recovery.
True
terminalization_error BaseException | None A separate failure encountered while
collecting terminal Store evidence, if any. The selected execution
failure remains __cause__.
None
node_execution_counts Mapping[str, int] Current-scope execution counts observed before
failure.