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: graceful termination via CancellationToken #21

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

jdockerty
Copy link
Owner

Closes #16

Using a CancellationToken passed to the various worker threads.

Each check for its cancellation and perform the necessary shutdown operation once a SIGINT has been sent. After a 30 second grace period the load balancer shuts down completely, severing connections.

This is better than its current mode of shutting down, whereby a termination call instantly severs connections and shutdowns immediately.

@jdockerty jdockerty self-assigned this Dec 2, 2023
@jdockerty jdockerty merged commit 8ca7ffe into main Dec 2, 2023
1 check passed
@jdockerty jdockerty deleted the feat/graceful-shutdown-thread-handling branch December 2, 2023 14:16
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.

graceful shutdown
1 participant