Skip to content

Event.updated

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 updated the job details.

Returns: jobId String

  • The Job.id for the job that has been updated in the queue.

Example:

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

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

Description

The updated event is raised whenever a job in the queue is changed by using the Job.update method.

See the Job.update and Job Editing documents for more detail.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally