Skip to content

@oona/vlo / host / findWorker

Function: findWorker() ​

findWorker(workers, queue, activity): Worker | undefined

Defined in: sdk/ts/sdk/src/host/worker/registry.ts:134

The first worker in this process that serves both the queue and the activity.

Parameters ​

workers ​

readonly Worker[]

queue ​

string

activity ​

string

Returns ​

Worker | undefined