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

Add close method to disconnect redis #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tomasvts
Copy link

@tomasvts tomasvts commented Sep 30, 2024

When running procyon in k8s, or docker, the command never quits because there is an open connection to redis.

In order to support these environments, there should be a manual way to disconnect the redis connection.

This change exposes a close method to allow the user close manually the connection whenever it's needed.

Add close method that calls redis.disconnect
@tomasvts tomasvts closed this Oct 10, 2024
@tomasvts tomasvts deleted the patch-1 branch October 10, 2024 12:54
@jochemstoel
Copy link
Owner

@tomasvts Did you suggest the change/patch for me to fix?

@tomasvts
Copy link
Author

I mistakenly closed this PR after I deleted the branch. Sorry.

I can create the branch again if you want, it's just three lines of code.

@tomasvts tomasvts restored the patch-1 branch October 14, 2024 19:43
@tomasvts tomasvts reopened this Oct 14, 2024
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.

2 participants