Listen to 'active' event.
This event is triggered when a job enters the 'active' state.
Optional
prev?: stringListen to 'added' event.
This event is triggered when a job is created.
Listen to 'cleaned' event.
This event is triggered when a cleaned method is triggered.
Listen to 'completed' event.
This event is triggered when a job has successfully completed.
Optional
prev?: stringListen to 'delayed' event.
This event is triggered when a job is delayed.
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 'duplicated' event.
This event is triggered when a job is not created because it already exist.
Listen to 'error' event.
This event is triggered when an exception is thrown.
Listen to 'failed' event.
This event is triggered when a job has thrown an exception.
Optional
prev?: stringListen to 'groups:paused' event.
This event is triggered when a group is paused.
Listen to 'groups:resumed' event.
This event is triggered when a group is resumed.
Listen to 'ioredis:close' event.
This event is triggered when ioredis is closed.
Listen to 'paused' event.
This event is triggered when a 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 'removed' event.
This event is triggered when a job has been manually removed from the queue.
Listen to 'resumed' event.
This event is triggered when a queue is resumed.
Listen to 'retries-exhausted' event.
This event is triggered when a job has retried the maximum attempts.
Listen to 'stalled' event.
This event is triggered when a job has been moved from 'active' back to 'waiting'/'failed' due to the processor not being able to renew the lock on the said job.
Listen to 'waiting' event.
This event is triggered when a job enters the 'waiting' state.
Optional
prev?: stringListen to 'waiting-children' event.
This event is triggered when a job enters the 'waiting-children' state.
Generated using TypeDoc
See
QueueEventsListener