Skip to main content

Interface: JobExecuteCommand

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

Executes a single stage within a workflow run.

Properties​

abortSignal?​

readonly optional abortSignal?: 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?​

readonly optional attempt?: 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​

readonly config: Record<string, unknown>

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


idempotencyKey?​

readonly optional idempotencyKey?: string

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


maxAttempts?​

readonly optional maxAttempts?: number

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


stageId​

readonly stageId: string

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


type​

readonly type: "job.execute"

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


workflowId​

readonly workflowId: string

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


workflowRunId​

readonly workflowRunId: string

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