Skip to content

Job.priority

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

Property Details

Usage: Read / Write

Get: String

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 priority = savedJobs[0].priority
  // priority === 'normal'
}).catch(err => console.error(err))

Description

For detail on what the priority values mean, see the Job Options document.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally