Interface: JobExecuteCommand
Defined in: packages/workflow-engine/src/kernel/commands.ts:164
Executes a single stage within a workflow run.
Properties
abortSignal?
readonlyoptionalabortSignal?:AbortSignal
Defined in: packages/workflow-engine/src/kernel/commands.ts:185
Becomes ctx.abortSignal for the stage invocation. The host loop
aborts it from its lease heartbeat when the run is cancelled or the
job lease is lost (job.heartbeat). Optional and never persisted: a
dispatch without one gives the stage a signal that never fires.
attempt?
readonlyoptionalattempt?:number
Defined in: packages/workflow-engine/src/kernel/commands.ts:177
The job's attempt number (1 on the first execution, as the transport
counts it) and its attempt budget. When both are known the kernel
records a retryable stage failure as PENDING — the retry the host is
about to enqueue — instead of FAILED, and reports willRetry.
config
readonlyconfig:Record<string,unknown>
Defined in: packages/workflow-engine/src/kernel/commands.ts:170
idempotencyKey?
readonlyoptionalidempotencyKey?:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:166
maxAttempts?
readonlyoptionalmaxAttempts?:number
Defined in: packages/workflow-engine/src/kernel/commands.ts:178
stageId
readonlystageId:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:169
type
readonlytype:"job.execute"
Defined in: packages/workflow-engine/src/kernel/commands.ts:165
workflowId
readonlyworkflowId:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:168
workflowRunId
readonlyworkflowRunId:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:167