Skip to content

Commit f6546fb

Browse files
authored
docs(groups): add warning when local concurrency is set (#2762)
1 parent ce1b22e commit f6546fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/gitbook/bullmq-pro/groups/concurrency.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ const worker = new WorkerPro('myQueue', processFn, {
1919
```
2020

2121
The concurrency factor is global, so in the example above, independently of the concurrency factor per worker or the number of workers that you instantiate in your application, it will never process more than 3 jobs per group at any given time.
22-

docs/gitbook/bullmq-pro/groups/local-group-concurrency.md

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const groupId = 'my group';
1414
await queue.setGroupConcurrency(groupId, 4);
1515
```
1616

17+
{% hint style="warning" %}
18+
Make sure to also set the [Group Concurrency](concurrency.md) at the worker instance level along side with the desired local concurrency, as it is required for this feature to function properly and also will act as a default concurrency value for the groups that have no local concurrency defined.
19+
{% endhint %}
20+
1721
And you can use the `getGroupConcurrency` method like this:
1822

1923
```typescript

0 commit comments

Comments
 (0)