Skip to content

Job.setRetryMax

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

Method Signature

Job.setRetryMax(retryMax)

Parameter: retryMax Number

  • The new retryMax value for the job representing how many times the job will be retried.

Returns: Job Object

Example:

job.setRetryMax(6)

// or

q.createJob().setRetryMax(6)

Description

The Job.setRetryMax changes the current retryMax 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