Skip to main content

Interface: LeaseReapStaleCommand

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

Releases stale job leases that have exceeded the threshold.

Properties​

absoluteTimeoutMs?​

readonly optional absoluteTimeoutMs?: number

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

Absolute cap (ms) on how long one claim may hold its lease, measured from startedAt and therefore unaffected by heartbeating. Jobs past it are failed terminally with the LEASE_ABSOLUTE_CAP reason. Omit, or pass 0, to run the heartbeat tier alone (the pre-1.0.0-alpha.9 behaviour). Ignored by a transport with no expireRunawayJobs.


staleThresholdMs​

readonly staleThresholdMs: number

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


type​

readonly type: "lease.reapStale"

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