-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueueEvents class never exits #119
Comments
I do not understand, the line you are referring to is a 5 seconds delay, so how is it hanging it forever? |
I agree, I'm not sure. That's why I'm confused. |
Hmm, it looks like if I take |
I suspect I see the problem here.
Looking at Line 370 in fccacee
Worker.close constructs a promise, but it does not return or await that promise. Basically it is creating a hanging promise that causes problems when you want to exit the process cleanly.
|
@onehorsetown close should wait for closing. But the promise it is not "hanging", it has a very important function. |
AFAIK this is resolved now. |
Whenever I try to use the QueueEvents class my process hangs forever because of this line: https://github.com/taskforcesh/bullmq/blob/master/src/classes/queue-events.ts#L65
However, If i just remove the QueueEvents class then it will exit correctly.
Example:
I used wtfnode in order to test this and got these results
It looks like the error here https://github.com/taskforcesh/bullmq/blob/master/src/classes/queue-events.ts#L62 is
Connection is closed.
The text was updated successfully, but these errors were encountered: