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

refactor(framework) Use sys.exit(0) instead of raise StopIteration for graceful exit #4673

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

panh99
Copy link
Contributor

@panh99 panh99 commented Dec 11, 2024

  • Use sys.exit(0) in the signal handler.
  • Avoid the code in the signal handler being executed in child processes.
  • Use sys.exit(10) for grpc-adapter instructed exit.

This PR aims to resolve the issue #3837

@panh99 panh99 marked this pull request as draft December 12, 2024 15:37
@panh99 panh99 changed the title refactor(framework) Use the custom SuperNodeExit exception instead of StopIteration for graceful exit refactor(framework) Use sys.exit(0) instead of raise StopIteration for graceful exit Dec 13, 2024
@panh99 panh99 marked this pull request as ready for review December 13, 2024 08:07
@panh99 panh99 marked this pull request as draft December 13, 2024 08:08
@panh99 panh99 marked this pull request as ready for review December 13, 2024 14:02
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