-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve signal handling for shutdown
- Initiates graceful shutdown upon receiving SIGINT or SIGTERM. - Logs "Initiating graceful shutdown, repeat signal to force shutdown" after canceling the context. - Adds logic to handle repeated signals to trigger a forced shutdown. - Implements a 30-second timeout for graceful shutdown before exiting with an error. - Ensures clarity in logs and robust shutdown handling.
- Loading branch information
1 parent
c77b58b
commit a922908
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters