Skip to content

Job.name

Grant Carthew edited this page Feb 9, 2017 · 2 revisions

Property Details

Usage: Read / Write

Default: Copy of the Job.id.

Get: String

  • Returns the current name for the job.

Set: String

Example:

const Queue = require('rethinkdb-job-queue')
const q = new Queue()
let job = q.createJob().setName('batman')
// Could use job.name = 'batman'

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

Description

For detail on Job.name values, see the Job Name document.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally