Skip to content

Job.setRetryDelay

Grant Carthew edited this page May 8, 2017 · 2 revisions

Method Signature

Job.setRetryDelay(retryDelay)

Parameter: retryDelay Number

  • The new retryDelay value for the job in milliseconds.

Returns: Job Object

Example:

job.setRetryDelay(6000000)

// or

q.createJob().setRetryDelay(6000000)

Description

The Job.setRetryDelay changes the current retryDelay value assigned to the job. This change is not persisted to the database. Use Queue.addJob or Job.update to save any changes.

See the Job Options 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