Skip to content

Event.cancelled

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

Event Details

Subject: Job

Signature: (queueId, jobId)

Returns: queueId String

  • The id of the Queue object that cancelled the job.

Returns: jobId String

  • The Job.id for the job that has been cancelled.

Example:

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

q.on('cancelled', (queueId, jobId) => {
  console.log('Job cancelled: ' + jobId)
})

Description

The cancelled event is raised whenever a job is cancelled.

See the Queue.cancelJob 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