Skip to content

Job.retryMax

Grant Carthew edited this page Aug 19, 2016 · 3 revisions

Property Details

Usage: Read Only

Get: Number

  • Returns the retryMax 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 retryMax = savedJobs[0].retryMax
  // retryMax === 3
}).catch((err) => {
  console.log(err)
})

Description

For detail on what the retryMax 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