Skip to content

Event.active

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

Event Details

Subject: Job

Signature: (jobId)

  • Returns the Job.id for the job that is ready to be processed.

Example:

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

q.on('active', (jobId) => {
  console.log('Job ready to be processed:' + jobId)
})

Description

The active event is raised whenever a job is retrieved from the queue database table and is ready to be processed.

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