-
Notifications
You must be signed in to change notification settings - Fork 0
Shutdown on Sigterm #144
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
Shutdown on Sigterm #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds SIGTERM signal handling for graceful shutdown of the Draco adapter server, resolving issue #143. The implementation allows the server to respond to SIGTERM signals (commonly sent by container orchestrators like Kubernetes) in addition to the existing Ctrl+C/SIGINT handling.
Changes:
- Added Unix-specific signal handling imports (
tokio::signal::unix) - Created a SIGTERM handler future that listens for terminate signals
- Integrated SIGTERM handling into both execution branches (with and without health service)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
Resolves: #143