Priority
job.priority(priority)
job.priority(priority)
The priority
method assigns a priority level to a job, determining its processing order relative to other jobs in the queue. This method is crucial for managing execution precedence, especially in systems where certain tasks need urgent handling.
This does NOT save the job in the database. you must explicitly declare save()
if you want to save it
Example Usage
Parameters
priority
(string
|number
): A priority label ('lowest'
,'low'
,'normal'
,'high'
,'highest'
) or a numeric value that corresponds to a predefined priority level.
Returns
Job
: Returns the job instance, enabling method chaining.
Last updated