Skip to content

AttemptConfig

AttemptConfig = object

Defined in: packages/core/src/worker/attempt-heartbeat.ts:4

Configuration for job attempt timeout and heartbeat frequency.

heartbeatMs: number

Defined in: packages/core/src/worker/attempt-heartbeat.ts:11

How often to extend the attempt deadline of a staged attempt. Defaults to 30_000.


timeoutMs: number

Defined in: packages/core/src/worker/attempt-heartbeat.ts:9

How long a worker holds a staged attempt before it can be reclaimed. Atomic attempts run in one transaction and have no deadline. Defaults to 60_000.