Skip to content

Event.completed

Grant Carthew edited this page Aug 20, 2016 · 2 revisions

Event Details

Subject: Job

Signature: (jobId)

Returns: jobId String

  • The Job.id for the job that has finished being processed successfully.

Example:

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

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

Description

The completed event is raised whenever a job has finished being processed successfully.

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