@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?
optionalconcurrency?: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?
optionalfetch?:FetchLike
Defined in: sdk/ts/sdk/src/host/worker/pull.ts:41
fetch implementation. Default globalThis.fetch.
onError?
optionalonError?: (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?
optionalqueues?: readonlystring[]
Defined in: sdk/ts/sdk/src/host/worker/pull.ts:31
Queues to poll, round-robin. Defaults to the queues the worker declares.
signal?
optionalsignal?: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?
optionaltoken?:string
Defined in: sdk/ts/sdk/src/host/worker/pull.ts:27
Control-plane bearer token; also sent when reporting results.
waitMs?
optionalwaitMs?: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?
optionalworkerId?: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>.