本页还没有译文
本页 46 段还没译成日本語,下面显示的是英文原文。RunState
还没翻译译自英文(tanstack.com)本页 46 段都还没译
Interface: RunState<TInput, TOutput>
Defined in: packages/workflow-core/src/types.ts:513
Persisted run metadata. State is intentionally NOT stored here —
it is reconstructed from initialize(input) + log replay on every
resume. The store only persists what's needed to route, resume,
and audit a run.
Type Parameters
TInput
TInput = unknown
TOutput
TOutput = unknown
Properties
awaiting?
optional awaiting: readonly RunAwaitable[];Defined in: packages/workflow-core/src/types.ts:525
All currently outstanding waits. Current engine versions only create one awaitable at a time, but the persisted shape can represent future fan-out/race primitives without replacing the run schema.
createdAt
createdAt: number;Defined in: packages/workflow-core/src/types.ts:541
error?
optional error: SerializedError;Defined in: packages/workflow-core/src/types.ts:520
input
input: TInput;Defined in: packages/workflow-core/src/types.ts:518
output?
optional output: TOutput;Defined in: packages/workflow-core/src/types.ts:519
pendingApproval?
optional pendingApproval: object;Defined in: packages/workflow-core/src/types.ts:534
Set when the run is paused awaiting an approval.
approvalId
approvalId: string;description?
optional description: string;meta?
optional meta: WorkflowMetadata;stepId?
optional stepId: string;title
title: string;runId
runId: string;Defined in: packages/workflow-core/src/types.ts:514
status
status: RunStatus;Defined in: packages/workflow-core/src/types.ts:515
updatedAt
updatedAt: number;Defined in: packages/workflow-core/src/types.ts:542
waitingFor?
optional waitingFor: object;Defined in: packages/workflow-core/src/types.ts:527
Set when the run is paused awaiting an external signal.
deadline?
optional deadline: number;meta?
optional meta: WorkflowMetadata;signalName
signalName: string;stepId?
optional stepId: string;workflowId
workflowId: string;Defined in: packages/workflow-core/src/types.ts:516
workflowVersion?
optional workflowVersion: string;Defined in: packages/workflow-core/src/types.ts:517