Skip to content
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

[V2.0.0] Can not exit process via ctrl+c cause of BullMQ Worker #2222

Closed
tianyingchun opened this issue Jun 11, 2023 · 1 comment
Closed
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@tianyingchun
Copy link
Contributor

Describe the bug
[V2.0.0] Can not correct exit process via ctrl+c cause of BullMQ Worker

image

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • @vendure/core version: 2.0.0
  • Nodejs version: 18
  • Database (mysql/postgres etc):mysql

Additional context
Add any other context about the problem here.

@is0utfitters
Copy link

I believe this issue should still be open - the logging occurs correctly without erroring since your initial fix, but the processes still hang, leaving the ports in use etc. Not sure if this is how you should correct this issue, but I was able to correct the behavior by adding a process.exit(0) after your promise.all in the destroy() method of the BullMQJobQueueStrategy class. Let me know if you think we should open a new issue with a better description and a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants