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

Worker requires a connection error #2413

Closed
2 of 4 tasks
kasir-barati opened this issue Jan 25, 2025 · 1 comment
Closed
2 of 4 tasks

Worker requires a connection error #2413

kasir-barati opened this issue Jan 25, 2025 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@kasir-barati
Copy link

kasir-barati commented Jan 25, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I have a NestJS app which is using @nestjs/bullmq. I am trying to write some e2e test for my app using the @nestjs/testing. But I get the an error, saying that I do not have a worker. I have a Redis container running in the background1.

Minimum reproduction code

https://github.com/kasir-barati/bugs/tree/bullmq-worker-needs-connection

Steps to reproduce

Written in the README.md.

Expected behavior

Just queue the message as you should be doing it.

Package version

11.0.1

Bull version

5.35.1

NestJS version

11.0.1

Node.js version

22.12.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

I had already asked around and since I was not able to get a straight answer I opened this issue:

Footnotes

  1. I am using Testcontainers and I had written a test case to show that I have a redis container running in the background.

@kasir-barati kasir-barati added bug Something isn't working needs triage labels Jan 25, 2025
@kamilmysliwiec
Copy link
Member

You need BullModule.forRoot

Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the #⁠ 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.

@nestjs nestjs locked and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants