Open-Source Wikis

/

Temporal

/

Primitives

/

Workflow execution

temporalio/temporal

Workflow execution

A workflow execution is one durable run of a workflow definition, identified by (NamespaceID, WorkflowID, RunID).

Aspect Detail
Identity (NamespaceID, WorkflowID, RunID). WorkflowID is user-supplied; RunID is a UUID.
Owner Exactly one History shard at a time, picked by hash(NamespaceID, WorkflowID) mod NumShards.
State sources Workflow History Events (append-only), Mutable State (summary), History Tasks (work to do).
Durability Every state transition is committed atomically across the three above.
Lifecycle Created → Running → one of {Completed, Failed, Cancelled, Terminated, ContinuedAsNew}.
Reuse WorkflowID can be reused after the previous execution closes (subject to reuse policy).

Code references

Where to read more

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

Workflow execution – Temporal wiki | Factory