Skip to main content

Interface: JobHeartbeatCommand

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

One beat of a host's job lease heartbeat: renews the lease and reports whether the work is still wanted. Dispatched by executeJobWithHeartbeat on its heartbeat interval while job.execute runs; a custom host that drives job.execute itself can dispatch it to feed the stage's abortSignal. No idempotency, no transaction, no outbox events.

Properties​

attempt?​

readonly optional attempt?: number

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

The attempt this worker dequeued. When given, a job row carrying a different attempt is reported as a lost lease even though it is RUNNING: another worker re-claimed it after a stale-lease release.


jobId​

readonly jobId: string

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


type​

readonly type: "job.heartbeat"

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


workflowRunId​

readonly workflowRunId: string

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