Skip to content

DBA-732 graceful shutdown #42

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

Merged
merged 3 commits into from
Apr 8, 2025
Merged

DBA-732 graceful shutdown #42

merged 3 commits into from
Apr 8, 2025

Conversation

greglearns
Copy link
Collaborator

No description provided.

@greglearns greglearns self-assigned this Apr 8, 2025
@greglearns greglearns requested review from mdashti and jssmith and removed request for mdashti April 8, 2025 18:39
@greglearns greglearns force-pushed the DBA-732-shutdown branch 2 times, most recently from 9256e22 to 5b9c13b Compare April 8, 2025 20:12
Copy link
Contributor

@jssmith jssmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on exit return code. I don't think it should be 0.


logger.info("Shutdown complete.")
os._exit(0)
Copy link
Contributor

@jssmith jssmith Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention is to exit with code 128 + signal number.

So 130 for SIGINT and 143 for SIGTERM

@greglearns greglearns merged commit 5f2a313 into main Apr 8, 2025
1 check passed
@greglearns greglearns deleted the DBA-732-shutdown branch April 8, 2025 21:22
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.

2 participants