Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
fix: setMaxListeners by default to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed May 26, 2020
1 parent 31a1afe commit 443dafb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class Bull {
prefix: `bull_${(
process.env.NODE_ENV || 'development'
).toLowerCase()}`
}
},
queueMaxListeners: 15
},
config
);
Expand Down Expand Up @@ -261,6 +262,8 @@ class Bull {

// <https://github.com/OptimalBits/bull/issues/1659>
queue.removeAllListeners('error');
queue.setMaxListeners(this.config.queueMaxListeners);

queue
.on('error', err => {
this.config.logger.error(err, this.getMeta({ queue }));
Expand Down

0 comments on commit 443dafb

Please sign in to comment.