Interface: RunRedriveCommand
Defined in: packages/workflow-engine/src/kernel/commands.ts:478
Re-drives a terminal run. Unlike the run.rerunFrom it replaces, the
superseded attempt is preserved: every stage record it removes is first
archived as a stage-scoped annotation carrying its status, error,
timings and output, so the failed attempt survives the retry.
Step Functions' model: the same run id, an incremented redriveCount,
no branching into a new execution.
Properties
definitionVersion?
readonlyoptionaldefinitionVersion?:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:493
Move the run onto a different definition version — DBOS's fork-onto-a- new-application-version, which is the answer to "we shipped a bug, patch it and re-run".
- omitted: keep the run's pinned version (the default).
"latest": re-pin to the version this process currently serves.- an explicit version string: re-pin to that version, which must already be registered for this workflow.
from?
readonlyoptionalfrom?:RunRedriveFrom
Defined in: packages/workflow-engine/src/kernel/commands.ts:482
Defaults to { kind: "lastFailure" }.
idempotencyKey?
readonlyoptionalidempotencyKey?:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:495
Optional idempotency key — a replayed call returns the cached result.
type
readonlytype:"run.redrive"
Defined in: packages/workflow-engine/src/kernel/commands.ts:479
workflowRunId
readonlyworkflowRunId:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:480