Skip to content

Event.detached

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

Event Details

Subject: Queue

Signature: (queueId)

Returns: queueId String

  • The Queue.id for the Queue object which has been detached from the database.

Example:

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

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

Description

The detached event is raised when a Queue object is stopped by calling the Queue.stop or the Queue.drop methods. This is a local process event only.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally