Skip to content

Event.added

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

Event Details

Subject: Job

Signature: (jobId)

Returns: jobId

  • 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', (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