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

feat(worker): add support for conditional connection closure #2449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kibertoad
Copy link

fixes #2437

In case application manages lifecycle of Redis connection itself, this provides an option of opting out of BullMQ automatic connection close.

@manast
Copy link
Contributor

manast commented Feb 25, 2024

This is not needed. The underlying Redis connection is only closed if it is not "shared": https://github.com/taskforcesh/bullmq/blob/master/src/classes/redis-connection.ts#L297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide an option to opt-out of automatic Redis connection closing on worker.close
2 participants