Skip to content

Commit

Permalink
chore: Reduce the queue process concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
diego3g committed Aug 13, 2021
1 parent c8aede7 commit 321e99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/providers/implementations/queue/BullProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class BullProvider implements IMailQueueProvider {
process(processFunction: Processor<IDeliverMessageJob>): void {
new Worker('mail-queue', processFunction, {
connection: redisConnection,
concurrency: 400,
concurrency: 100,
limiter: {
max: 400,
duration: 1000,
Expand Down

0 comments on commit 321e99f

Please sign in to comment.