Skip to content

Event.reset

Grant Carthew edited this page Nov 19, 2016 · 2 revisions

Event Details

Subject: Queue

Signature: (queueId, totalRemoved)

Returns: queueId String

  • The id of the Queue object that reset the queue.

Returns: totalRemoved Number

  • The number of jobs removed from the queue by the Queue.reset.

Example:

const Queue = require('rethinkdb-job-queue')
const q = new Queue()

q.on('processing', (queueId, totalRemoved) => {
  console.log('Queue reset: ' + totalRemoved)
})

Description

The reset event is raised whenever a Queue object resets the queue. This is a local Queue object event only. Other Queue objects would raise the removed event for each job removed from the queue.

See the Queue.reset method and the changeFeed queue option for more detail.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally