Hello all, I have been spinning my wheels trying to get NestJS with BullModule working in Production environment. I am able to get it working locally but as soon as I try to run the code in Production (Have tried Heroku and Digital Ocean) it fails. I initially posted my request for assistance here: https://github.com/nestjs/bull/issues/1950 with code. Following that I made a small project with the needed code to isolate it away and because the main repo is private, and have reproduced the same problem. Here is the link to the public example app https://github.com/centralizer/process I also created a test droplet with an Ubuntu OS producing the same problem if anyone wants to see that, let me know and I can give the ip and password.
This is what happens. In production the application runs fine with no indication of any errors during startup. After I try to hit the endpoint and initialize the process, the consumer immediately calls @OnQueueError listener. The @OnQueueError listener will indefinitely continue to be called. I placed a console.log to illustrate that:
At some point I did see an error but i am not sure when it was thrown.
Additionally I have ran the test app without using docker compose with means Redis is not running and I see the same results. So it seems like nest is not able to connect with Redis.