DispatcherOptions
Defined in: src/dispatcher.ts:25
Options for createDispatcher (also accepted on panels and the core).
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
autoDisable? |
| false | { failingForDays?: number; } |
Auto-disable endpoints whose every attempt has failed for this many consecutive days. false disables the policy. Default { failingForDays: 5 }. |
src/dispatcher.ts:46 |
batchSize? |
number |
Max deliveries claimed per tick. Default 20. |
src/dispatcher.ts:29 |
concurrency? |
number |
Max in-flight HTTP attempts. Default 8. |
src/dispatcher.ts:31 |
fetch? |
typeof fetch |
Injectable fetch (tests, instrumentation). Default: global fetch. | src/dispatcher.ts:50 |
leaseMs? |
number |
Claim lease duration; an expired lease makes a claim reclaimable. Default 60_000. |
src/dispatcher.ts:35 |
pollIntervalMs? |
number |
How often to poll for due deliveries. Default 1000. |
src/dispatcher.ts:27 |
responseBodyLimit? |
number |
Cap on stored response-body characters per attempt. Default 4096. |
src/dispatcher.ts:48 |
retrySchedule? |
WebhookDuration[] |
Delay before attempt N+1 after attempt N fails (index 0 = the initial attempt’s delay). Exhausting the schedule dead-letters the delivery. Default ["0s", "5s", "5m", "30m", "2h", "5h", "10h"] (Svix-compatible). |
src/dispatcher.ts:41 |
timeoutMs? |
number |
Per-attempt timeout (AbortController). Default 20_000. |
src/dispatcher.ts:33 |
userAgent? |
string |
user-agent header. Default "xtandard-webhooks/<version>". |
src/dispatcher.ts:52 |