Skip to main content

Interface: WorkflowInfoSnapshot

What a task knows about its run (C-ABI WorkflowInfoSnapshot). From SDK R2 the runtime reads workflowId, runAttempt, lastResult, lastFailure, summary, details, the memo (context), the timeouts, retry, priority and versioningBehavior from WORKFLOW_STARTED when the event carries them, so a replay sees what the first execution saw; the lease values here are the fallback for histories written before R2.

Extended by​

Properties​

attempt?​

optional attempt?: number

Run-level retry attempt, 1-based (same value as runAttempt).


buildId?​

optional buildId?: string


businessId?​

optional businessId?: string

The column name of the workflow id (11 §2.1).


context?​

optional context?: JsonObject

The run's memo (11 §2.22); memo is the same value under its Temporal name.


continuedFromRunId?​

optional continuedFromRunId?: string


details?​

optional details?: string


fairnessKey?​

optional fairnessKey?: string

Fairness of the run's tasks (11 §2.11).


fairnessWeight?​

optional fairnessWeight?: number


firstRunId?​

optional firstRunId?: string


headers?​

optional headers?: Headers


historyLimit?​

optional historyLimit?: HistoryLimit


lastFailure?​

optional lastFailure?: Failure


lastResult?​

optional lastResult?: Json


memo?​

optional memo?: JsonObject


parentRunId?​

optional parentRunId?: string


priority?​

optional priority?: number


retry?​

optional retry?: RunRetryPolicy

The run-level retry policy of the chain.


rootRunId?​

optional rootRunId?: string


runAttempt?​

optional runAttempt?: number

Run-level retry attempt, 1-based (11 §2.17).


runId​

runId: string


runStartedAt?​

optional runStartedAt?: string


searchAttributes?​

optional searchAttributes?: JsonObject

The run's search attributes at the start (11 §2.8).


startedAt?​

optional startedAt?: string


summary?​

optional summary?: string


taskQueue?​

optional taskQueue?: string


timeouts?​

optional timeouts?: object

executionTimeout?​

optional executionTimeout?: number

runTimeout?​

optional runTimeout?: number

workflowTaskTimeout?​

optional workflowTaskTimeout?: number


version?​

optional version?: string | number


versioningBehavior?​

optional versioningBehavior?: "PINNED" | "AUTO_UPGRADE"


workflowId?​

optional workflowId?: string

The caller-chosen workflow id (businessId), else the first run's id.


workflowKey?​

optional workflowKey?: string


workspaceId​

workspaceId: string