Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/workflow / / CreateTimerDriverOptions
Interface: CreateTimerDriverOptions
Defined in: packages/workflow/src/timer-driver.ts:56
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
batchLimit? | readonly | number | Max due threads ticked per workflow per sweep. Default 100. | packages/workflow/src/timer-driver.ts:61 |
clearTimeoutImpl? | readonly | (handle) => void | - | packages/workflow/src/timer-driver.ts:65 |
now? | readonly | () => number | Injectable clock (offline tests). Default Date.now. | packages/workflow/src/timer-driver.ts:63 |
onError? | readonly | (workflowName, threadId, error) => void | Per-thread failure sink; the driver survives and moves on. A checkpoint-version-conflict never reaches it - in a multi-process deployment two drivers may race the same due thread and the store CAS makes the loser benign by design. | packages/workflow/src/timer-driver.ts:72 |
pollIntervalMs? | readonly | number | Poll interval upper bound (ms). Default 30000. | packages/workflow/src/timer-driver.ts:59 |
setTimeoutImpl? | readonly | (fn, ms) => unknown | - | packages/workflow/src/timer-driver.ts:64 |
workflows | readonly | readonly TimerDriverEntry[] | - | packages/workflow/src/timer-driver.ts:57 |