Returns the version of the Redis instance the client is connected to,
Closes the worker and related redis connections.
This method waits for current jobs to finalize before returning.
Use force boolean parameter if you do not want to wait for current jobs to be processed.
Promise that resolves when the worker has been closed.
This function is exposed only for testing purposes.
Force disconnects a connection.
Returns a promise that resolves to the next job in queue.
worker token to be assigned to retrieved job
a Job or undefined if no job was available in the queue.
Checks if worker is paused.
true if worker is paused, false otherwise.
Checks if worker is currently running.
true if worker is running, false otherwise.
Pauses the processing of this queue only for this worker.
Resumes processing of this worker (if paused).
Waits until the worker is ready to start processing jobs. In general only useful when writing tests.
Generated using TypeDoc