Skip to content

Job.status

Grant Carthew edited this page Feb 10, 2017 · 4 revisions

Property Details

Usage: Read / Write

Get: String

  • Returns the current status for the job.

Example:

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

q.addJob(job).then(() => {
  return q.getJob(job.id)
}).then((savedJobs) => {
  let status = savedJobs[0].status
  // status === 'waiting'
}).catch(err => console.error(err))

Description

For detail on Job.status values, see the Job Status document.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally