Skip to content

Job.setRepeat

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

Method Signature

Job.setRepeat(repeat)

Parameter: repeat Boolean or Number

  • The new repeat value to process jobs more than once.

Returns: Job Object

Example:

job.setRepeat(6)

// or

q.createJob().setRepeat(6)

Description

The Job.setRepeat method changes the current repeat 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 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