Optional
processor: string | ProcessorPro<DataType, ResultType, NameType>Optional
opts: WorkerProOptionsReadonly
nameRest
...args: Parameters<WorkerListener<DataType, ResultType, NameType>[U]>Returns a promise that resolves to the next job in queue.
worker token to be assigned to retrieved job
Optional
__namedParameters: GetNextJobOptionsa Job or undefined if no job was available in the queue.
Waits until the worker is ready to start processing jobs. In general only useful when writing tests.
Generated using TypeDoc
Closes the worker and related redis connections.
This method waits for current jobs to finalize before returning.