Skip to content

Event.added

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

Event Details

Subject: Job

Signature: (queueId, jobId)

Returns: queueId String

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

Returns: jobId String

  • The Job.id for the job that has been added to the queue.

Example:

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

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

Description

The added event is raised whenever a new job is added to the queue.

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