Skip to content

Instantly share code, notes, and snippets.

@abdeljalil09
Created June 29, 2023 15:44
Show Gist options
  • Save abdeljalil09/3aa76c9fab47b58f864604484c9b748e to your computer and use it in GitHub Desktop.
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:
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