Skip to content

@oona/vlo / host / DispatcherOptions

Interface: DispatcherOptions ​

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:61

Tuning for the outbox dispatcher. Every default suits a single laptop host.

Properties ​

backoffBaseMs? ​

optional backoffBaseMs?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:71

First backoff step after a refused push; doubles per dispatch attempt.


batch? ​

optional batch?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:67

Rows one stage claims per pass. Default 50.


claimHoldMs? ​

optional claimHoldMs?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:69

How long a claim is held before another orchestrator may take the row.


fetch? ​

optional fetch?: FetchLike

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:77

fetch used for HTTP pushes. Default globalThis.fetch; injected by tests.


maxBackoffMs? ​

optional maxBackoffMs?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:73

Ceiling on the push backoff. Default 60 s.


mode? ​

optional mode?: DispatcherMode

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:63

loop (default) ticks on a timer and on kick(); manual only ticks when asked.


tickMs? ​

optional tickMs?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:65

Interval between passes in loop mode. Default 500 ms.


unroutableBackoffMs? ​

optional unroutableBackoffMs?: number

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:75

Backoff used when no transport serves the task's queue at all.


workerId? ​

optional workerId?: string

Defined in: sdk/ts/sdk/src/host/dispatcher.ts:79

Recorded as worker_id on tasks this process dispatches. Default vlo-<8 hex>.