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

"Connection is closed" jest error when using bullmq > 5.1.11 #2138

Open
2 of 4 tasks
trhodeos opened this issue Jun 24, 2024 · 2 comments
Open
2 of 4 tasks

"Connection is closed" jest error when using bullmq > 5.1.11 #2138

trhodeos opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working needs triage

Comments

@trhodeos
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When running a simple test in jest (spin up an application with a queue and a WorkerHost) and tearing down the app, we see unhandled errors from jest: Connection is Closed.

I tracked this down to this ticket / PR on the bullmq side: taskforcesh/bullmq#2385.

Minimum reproduction code

https://github.com/trhodeos/bull

Steps to reproduce

  1. yarn install
  2. cd packages/bullmq
  3. yarn test:e2e

Expected behavior

Tests run sucessfully

Package version

10.1.1 (bullmq)

Bull version

5.1.12 (bullmq)

NestJS version

10.3.0

Node.js version

18.20.3

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@trhodeos trhodeos added bug Something isn't working needs triage labels Jun 24, 2024
@trhodeos
Copy link
Author

For a "fix", I've pinned bullmq to 5.1.11. However, it would be nice to be on the latest bullmq.

@kamilmysliwiec
Copy link
Member

Would you like to create a PR for this issue?

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

No branches or pull requests

2 participants