Skip to content

Job.queueId

Grant Carthew edited this page Oct 1, 2016 · 2 revisions

Property Details

Usage: Read Only

Get: String

  • Returns a complex id string used to identify the Queue object that last updated 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) => {
  // savedJobs[0].queueId will look something like this
  // 'WebDev:rjqJobQueueTests:rjqJobQueueTestJobs:11797:2ff3db65-ffef-4a9b-a932-b6ac8bcc48a0'
}).catch(err => console.error(err))

Description

For detail on what the queueId value is used for, see the Queue.id document.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally