Skip to content

Event.active

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

Event Details

Subject: Job

Signature: (queueId, jobId)

Returns: queueId String

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

Returns: jobId String

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