Skip to content

Job.retryDelay

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

Property Details

Usage: Read / Write

Get: Number

  • Returns the retryDelay value configured for this 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 retryDelay = savedJobs[0].retryDelay
  // retryDelay === 600000
}).catch(err => console.error(err))

Description

For detail on what the retryDelay value is used for, see the Job Retry document.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally