Skip to content

Event.terminated

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 terminated the job.

Returns: jobId String

  • The Job.id for the job that has failed processing and has no retries available.

Example:

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

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

Description

The terminated event is raised whenever a job has failed processing and has no retries available. If the job has retries available, the failed event is raised.

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