Skip to content

Event.processing

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

Event Details

Subject: Job

Signature: (queueId, jobId)

Returns: queueId String

  • The id of the Queue object that started processing the job.

Returns: jobId String

  • The Job.id for the job that is currently being processed.

Example:

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

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

Description

The processing event is raised whenever a job is starting 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