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

end_session() with end_tcsession='kill' could not terminate the session once new_session() was not finished. #25

Open
Kayla-zhang opened this issue Aug 20, 2021 · 0 comments

Comments

@Kayla-zhang
Copy link
Contributor

Hi,
When we are using new_session() and end_session() in stc_http.py, An issue was found.
Our process is trying to use new_session() to create session.
During the session creating in labserver (started, but not finished), our process was interrupted by TERM signal and it falls into graceful shutdown, thus end_session(end_tcsession='kill') is called, which is trying to terminate the session in labserver.
In the parameter specification of end_seesion method, it is "sid -- ID of session to end. None to use current session.".
However, end_session(end_tcsession='kill') is called to terminate current session, but failed. We could still see the session in labserver via session manager. It is because new_seesion() is not finshed and self._sid is None.
Please fix it to let end_session with end_tcsession='kill' work in this scenario. Thanks.

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

No branches or pull requests

1 participant