Skip to content

Job.setPriority

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

Method Signature

Job.setPriority(priority)

Parameter: prioirty String

  • The new job priority value.
  • Supported priorities: 'lowest', 'low', 'normal', 'medium', 'high', 'highest'

Returns: Job Object

Example:

job.setPriority('high')

// or

q.createJob().setPriority('high')

Description

The Job.setPriority method changes the current priority 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