Skip to content

Event.failed

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

Returns: jobId String

  • The Job.id for the job that has failed processing.

Example:

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

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

Description

The failed event is raised whenever a job has failed processing and has retries available. If the job has no retries, the terminated 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