Skip to content

Shutdown on Sigterm - #144

Merged
raphael-goetz merged 4 commits into
mainfrom
143-shutdown-on-sigterm
Jan 30, 2026
Merged

Shutdown on Sigterm#144
raphael-goetz merged 4 commits into
mainfrom
143-shutdown-on-sigterm

Conversation

@raphael-goetz

Copy link
Copy Markdown
Member

Resolves: #143

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread crates/base/src/runner.rs
Comment thread crates/base/src/runner.rs
Comment thread crates/base/src/runner.rs
Comment thread crates/base/src/runner.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread crates/base/src/runner.rs Outdated
Comment thread crates/base/src/runner.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
@raphael-goetz
raphael-goetz merged commit 97e4fb2 into main Jan 30, 2026
4 checks passed
@raphael-goetz
raphael-goetz deleted the 143-shutdown-on-sigterm branch January 30, 2026 21:27
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.

Shutdown on SIGTERM

2 participants