-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(bullmq-pro): add prioritized section (#2096)
- Loading branch information
1 parent
3a656d9
commit a0f153c
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Prioritized intra-groups | ||
|
||
BullMQ Pro supports priorities per group. A job is prioritized in a group when group and priority options are provided together. | ||
|
||
```typescript | ||
await myQueue.add('paint', { foo: 'bar' }, { | ||
group: { | ||
id: 'groupId', | ||
priority: 10 | ||
} | ||
}); | ||
``` | ||
|
||
{% hint style="info" %} | ||
Standard prioritized jobs get more priority than grouped prioritized jobs | ||
{% endhint %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters