Skip to content

Job.setTimeout

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

Method Signature

Job.setTimeout(timeout)

Parameter: timeout Number

  • The new timeout value for the job in milliseconds.

Returns: Job Object

Example:

job.setTimeout(10000)

// or

q.createJob().setTimeout(10000)

Description

The Job.setTimeout method changes the current timeout 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