Skip to content

Job.repeatDelay

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

Property Details

Usage: Read / Write

Get: Number

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

Description

See the Job Repeat document for more detail.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally