Skip to content

Job.setPriority

Grant Carthew edited this page Sep 30, 2016 · 6 revisions

Method Signature

Job.setPriority(priority)

Parameter: prioirty String

  • A valid string 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.

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