You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it still returns listener after close. This an issue for me because this code is executed from API many times and eventually I get MaxListenersExceededWarning.
Temporary I added this code below queue close to resolve my issue:
close(): Promise<void>{if(!this.closing){this.closing=async()=>{if(this._repeat){constrepeat=this._repeat();awaitrepeat.close();}awaitsuper.close();// Call close in queue-base.ts};}returnthis.closing;}
The text was updated successfully, but these errors were encountered:
This is happening for me with shared Redis client. My code:
And it still returns listener after close. This an issue for me because this code is executed from API many times and eventually I get MaxListenersExceededWarning.
Temporary I added this code below queue close to resolve my issue:
Then all listeners are removed.
Looks like there should be a close method added in https://github.com/taskforcesh/bullmq/blob/e17b3f21606757a16630988a69c9607e8c843bd2/src/classes/queue.ts
The text was updated successfully, but these errors were encountered: