QueueWorkerOptions
Parameters and properties
Section titled “Parameters and properties”queueRequiredTaskQueueQueue the worker claims jobs from and reports results to.workerRequiredstringWorker name recorded on each claimed job, 1 to 512 characters; give each process its own.handlersRequiredReadonly<Record<string, QueueHandler>>Handlers by name, 1 to 100; the worker claims only jobs whose handler is listed here.signalRequiredAbortSignalStops the worker: runQueueWorker() resolves and the running handler’s signal aborts. That job stays active until its lease expires.leaseMsOptionalnumber | undefinedLease duration in milliseconds, default 30000, from 30 to 300000; renewed at every third of it.pollMsOptionalnumber | undefinedWait in milliseconds after finding no eligible job, default 250; must be positive.