What is the configuration to use @taskforcesh/nestjs-bullmq-pro with a serverless valkey. #3004
Unanswered
horlaarsco
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The way BullMQ is designed it requires the workers to have a permanent connection to Redis. If they did not have it then they will not be able to detect that new jobs are available in the queue. If you want to open and close connections manually you can do it but that is probably not going to be so efficient, using manual processing: https://docs.bullmq.io/patterns/manually-fetching-jobs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started using @taskforcesh/nestjs-bullmq-pro with AWS serverless valkey everything seems to work fine but it seems like bullMQ keeps the connection alive which is not so good for a serverless application.
For the picture above there have been no request or job added to the server in the last 12 hours but this just last 1 hour and it says there are currently 121 connections.
How can I close the connection when its not in use in nestjs.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions