Created
June 29, 2023 15:44
-
-
Save abdeljalil09/3aa76c9fab47b58f864604484c9b748e to your computer and use it in GitHub Desktop.
Import the BullModule from the Bull.js module in a Nest.js project. Configure the registerQueue method with the following settings:
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
BullModule.registerQueue({ | |
name: 'subscribe', | |
processors: [ | |
{ | |
path: resolve(`dist/workers/news/subscribe.js`), | |
concurrency: 5 / 2, | |
}, | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment