Skip to content

Event.progress

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

Event Details

Subject: Job

Signature: (queueId, jobId, percent)

Returns: queueId String

  • The id of the Queue object that updated the progress.

Returns: jobId String

  • The Job.id for the job that has been added to the queue.

Returns: percent Number

  • The reported percentage completed for the job.

Example:

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

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

Description

The progress event is raised whenever a job handling function updates the progress of the job.

See the Job.updateProgress 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