-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: terminate s8s session on kernel termination #24
Conversation
if state is not None and state == Session.State.FAILED: | ||
raise RuntimeError("Serverless session termination failed") |
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.
Instead of this logic with the state = None
statement above, put a return
statement outside of the while loop on line 540, and then make the subsequent raise RuntimeError...
call below unconditional.
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.
We only want to raise RuntimeError when state == Session.State.FAILED
. After the while loop if the state is failed, we need to raise this error.
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.
LGTM after one small change.
No description provided.