Listen to 'closing' event.
This event is triggered when the worker is closed.
Listen to 'closing' event.
This event is triggered when the worker is closing.
Listen to 'completed' event.
This event is triggered when a job has successfully completed.
Listen to 'drained' event.
This event is triggered when the queue has drained the waiting list. Note that there could still be delayed jobs waiting their timers to expire and this event will still be triggered as long as the waiting list has emptied.
Listen to 'error' event.
This event is triggered when an error is throw.
Listen to 'failed' event.
This event is triggered when a job has thrown an exception. Note: job parameter could be received as undefined when an stalled job reaches the stalled limit and it is deleted by the removeOnFail option.
Listen to 'paused' event.
This event is triggered when the queue is paused.
Listen to 'progress' event.
This event is triggered when a job updates it progress, i.e. the Job##updateProgress() method is called. This is useful to notify progress or any other data from within a processor to the rest of the world.
Listen to 'ready' event.
This event is triggered when blockingConnection is ready.
Listen to 'resumed' event.
This event is triggered when the queue is resumed.
Listen to 'stalled' event.
This event is triggered when a job has stalled and has been moved back to the wait list.
Generated using TypeDoc
Listen to 'active' event.
This event is triggered when a job enters the 'active' state.