Skip to content

Commit

Permalink
GITBOOK-193: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
manast authored and gitbook-bot committed Apr 5, 2024
1 parent 8036563 commit 5ccc360
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/gitbook/guide/jobs/prioritized.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Adding prioritized jobs is a slower operation than the other types of jobs, with

Note that the priorities go from `1` to `2 097 152`, where a lower number is always a **higher** priority than higher numbers.

Jobs without a `priority` assigned will get the most priority.
{% hint style="danger" %}
Jobs without a `priority` assigned will get the highest priority, being processed before jobs with priorities assigned to them.
{% endhint %}

```typescript
import { Queue } from 'bullmq';
Expand Down Expand Up @@ -59,6 +61,6 @@ const jobs2 = await queue.getPrioritized();

## Read more:

- 📋 [Faster Priority jobs](https://bullmq.io/news/062123/faster-priority-jobs/)
- 💡 [Change Priority API Reference](https://api.docs.bullmq.io/classes/v5.Job.html#changePriority)
- 💡 [Get Prioritized API Reference](https://api.docs.bullmq.io/classes/v5.Queue.html#getPrioritized)
* 📋 [Faster Priority jobs](https://bullmq.io/news/062123/faster-priority-jobs/)
* 💡 [Change Priority API Reference](https://api.docs.bullmq.io/classes/v5.Job.html#changePriority)
* 💡 [Get Prioritized API Reference](https://api.docs.bullmq.io/classes/v5.Queue.html#getPrioritized)

0 comments on commit 5ccc360

Please sign in to comment.