Skip to main content

Interface: RunCancelBatchOutcome

Defined in: packages/workflow-engine/src/kernel/commands.ts:165

One provider batch found on a run, and what run.cancel did to it.

Properties​

error?​

readonly optional error?: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:182

Why the batch could not be cancelled (unavailable, failed, held).


externalKey?​

readonly optional externalKey?: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:177

The submit step's external key, for unrecorded and unverified.


heldUntil?​

readonly optional heldUntil?: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:184

For held: when the other sweep's hold on the step ends (ISO 8601).


providerStatus?​

readonly optional providerStatus?: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:180

The provider's own status for the batch, as read before the cancel.


ref?​

readonly optional ref?: EngineBatchRef

Defined in: packages/workflow-engine/src/kernel/commands.ts:175

Absent for unrecorded: no handle is recorded.


stageId​

readonly stageId: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:167

The stage that created the batch.


status​

readonly status: RunCancelBatchStatus

Defined in: packages/workflow-engine/src/kernel/commands.ts:178


stepId?​

readonly optional stepId?: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:173

The durable step that holds the batch (${id}:submit of a ctx.step.ai.map). Absent for a batch found in the stage's suspendedState.metadata.batchRefs.