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

How to close client and refresh agent gracefully? #9

Open
SHxKM opened this issue Jan 29, 2025 · 0 comments
Open

How to close client and refresh agent gracefully? #9

SHxKM opened this issue Jan 29, 2025 · 0 comments

Comments

@SHxKM
Copy link

SHxKM commented Jan 29, 2025

After much help from @iansrobinson, we are using this library in our DEV and PROD environments.

One thing I'm deliberating how to handle is closing the GraphTraversalSource we've built, as well as the ClusterEndpointsRefreshAgent. They both expose a close() method, but I'm wondering if we have some elegant way to "wait" for pending queries, without holding state. The service should stop receiving requests from the load balancer on rolling a new version (or pod restart), so we can rely on that, but I'm wondering if something nice is also exposed.

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

No branches or pull requests

1 participant