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 starting to be processed.

Example:

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

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

Description

The active event is raised whenever a job is starting to be processed by the queue.

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