You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/i18n/en/docusaurus-plugin-content-docs/current/extensions/bullmq.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -411,6 +411,40 @@ export default {
411
411
}
412
412
```
413
413
414
+
### Getting Task Processors
415
+
416
+
Through built-in methods, we can get the original task processors (Workers).
417
+
418
+
You can start any number of Workers to listen to the same queue. In this case, BullMQ will distribute tasks in the queue to these Workers in a round-robin manner.
419
+
420
+
When tasks are added to the queue, BullMQ will automatically distribute tasks between these Workers.
421
+
422
+
We can get the first listening Worker object through the `getWorker` method, or get all Worker objects listening to the queue through the `getWorkers` method.
Copy file name to clipboardExpand all lines: site/i18n/en/docusaurus-plugin-content-docs/version-3.0.0/extensions/bullmq.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -411,6 +411,40 @@ export default {
411
411
}
412
412
```
413
413
414
+
### Getting Task Processors
415
+
416
+
Through built-in methods, we can get the original task processors (Workers).
417
+
418
+
You can start any number of Workers to listen to the same queue. In this case, BullMQ will distribute tasks in the queue to these Workers in a round-robin manner.
419
+
420
+
When tasks are added to the queue, BullMQ will automatically distribute tasks between these Workers.
421
+
422
+
We can get the first listening Worker object through the `getWorker` method, or get all Worker objects listening to the queue through the `getWorkers` method.
0 commit comments