Skip to content

@oona/vlo / host / PullWorkerOptions

Interface: PullWorkerOptions ​

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:23

Properties ​

baseUrl ​

baseUrl: string

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:25

The host's base URL, e.g. https://vlo.example.com.


concurrency? ​

optional concurrency?: number

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:35

Tasks run at once. Default 4; at most 10 are requested per poll.


fetch? ​

optional fetch?: FetchLike

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:41

fetch implementation. Default globalThis.fetch.


onError? ​

optional onError?: (error) => void

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:43

Called for a poll that failed; the loop backs off and carries on.

Parameters ​

error ​

unknown

Returns ​

void


queues? ​

optional queues?: readonly string[]

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:31

Queues to poll, round-robin. Defaults to the queues the worker declares.


signal? ​

optional signal?: AbortSignal

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:37

Stops polling when aborted; in-flight handlers see it on ctx.signal.


token? ​

optional token?: string

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:27

Control-plane bearer token; also sent when reporting results.


waitMs? ​

optional waitMs?: number

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:33

How long the host may hold a poll open with no work. Capped at 25 s by the host.


worker ​

worker: Worker

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:29

The activity implementations to run.


workerId? ​

optional workerId?: string

Defined in: sdk/ts/sdk/src/host/worker/pull.ts:39

Sent as worker_id and recorded on the task. Default vlo-pull-<8 hex>.