Skip to content

Instantly share code, notes, and snippets.

@skl-songkiat
Created June 8, 2021 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skl-songkiat/e205195173c90dce38b3be7e58c0656e to your computer and use it in GitHub Desktop.
Save skl-songkiat/e205195173c90dce38b3be7e58c0656e to your computer and use it in GitHub Desktop.
BullModule.forRoot({
redis: {
host: 'localhost',
port: 6379,
},
limiter: { // setting synchronous
max: 1,
duration: 10000,
bounceBack: false // important
},
settings: { // setting QUEUE
backoffStrategies: { // Queue handle error
jitter: function (attemptsMade, err) {
return 15000;
}
}
},
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment