Skip to content

Event.idle

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

Event Details

Subject: Queue

Signature: (queueId)

Example:

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

q.on('idle', (queueId) => {
  console.log('Queue is idle: ' + queueId)
})

Description

The idle event is raised when the Queue object is not processing any jobs. The Queue object is idle when the Queue.running property is returning the number zero. This is a local Queue object event only.

See the Queue.idle property for more detail.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally