-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Terminate IDEs gracefully on workspace shutdown #10123
Conversation
@mustard-mh Be sure to check if |
@mustard-mh yes it will be good to have how to test section fro VS Code as well |
I don't know how to reproduce it [1], so don't know how to test it🥲 @akosyakov |
Could you take time to read through VS Code code and understand meaning of this options and how we can test? |
I don’t think SIGTERM should work instead better and wait like 5s. |
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.
Code reviewed and PR tested as described. Everything working fine! ✅
Description
Terminate IDEs gracefully on workspace shutdown.
Before this PR, we will send Interrupt (SIGINT) to ask IDEs to exit, and only give them 5 seconds to do it. This behavior may cause IDEs indexing failed sometimes.
To properly shutdown IDE server
we use thesewe pass SIGTERMenable-remote-auto-shutdown
andremote-auto-shutdown-without-delay
argsexit
commandRelated Issue(s)
Fixes #9955
How to test
For Gateway
kubectl logs -f <workspace_pod_name> > ws.log
to get all logs of workspacekubectl logs -f <workspace_pod_name> > ws-2.log
to get all logs of workspaceWith
ws.log
we must seeasked IDE to terminate
beforeIDE stopped, exiting
With downloaded zipped log, unzip and unzip .zip file inside, you will get
idea.log
, and check indexing logs insideRelease Notes
Documentation