Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/workflow / / PendingPauseRecord

Interface: PendingPauseRecord

Defined in: packages/workflow/src/types.ts:386

Structured record stored alongside a suspended checkpoint so the engine can resume the paused node with the operator's directive.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
dispatchArgs?readonlyunknownArgs supplied to Dispatch when the paused task was scheduled.packages/workflow/src/types.ts:390
name?readonlystringAwakeable / approval name (D1) - present when the suspension came from awaitExternal(name) or requestApproval(name). Targeted by workflow.resolveAwakeable(...) / workflow.approve(...).packages/workflow/src/types.ts:423
nodeNamereadonlystring-packages/workflow/src/types.ts:387
satisfied?readonlyreadonly unknown[]Ordered resume values ALREADY delivered to this node's earlier pause() calls (WF-2). On resume the body re-executes from the top: these replay by index, and the new directive value lands at the next cursor.packages/workflow/src/types.ts:401
satisfiedMeta?readonlyreadonly ( | { kind?: string; name?: string; } | null)[]W-120: per-value identity of the pause each satisfied entry answered (kind for durable primitives, name for awakeables/approvals; null/empty for plain pause()). Replay verifies each entry against the CURRENT pause at that cursor and fails with pause-replay-divergence on mismatch. Absent on checkpoints written before the field existed - those replay unchecked (back-compat).packages/workflow/src/types.ts:411
staticAfter?readonlybooleanWhen true the engine paused after the task completed, via pauseAt.after.packages/workflow/src/types.ts:394
staticBefore?readonlybooleanWhen true the task was paused statically by pauseAt.before.packages/workflow/src/types.ts:392
valuereadonlyunknown-packages/workflow/src/types.ts:388
wakeAt?readonlynumberEpoch ms at which a durable timer becomes due (D1) - present when the suspension came from sleepUntil(...) / sleepFor(...). workflow.tick(threadId) resumes the thread once due.packages/workflow/src/types.ts:417