Skip to content

Job.timeout

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

Property Details

Usage: Read / Write

Get: Number

  • Returns the timeout 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 timeout = savedJobs[0].timeout
  // timeout === 300000
}).catch(err => console.error(err))

Description

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