-
Notifications
You must be signed in to change notification settings - Fork 3
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
Closing RPE app in Windows leaves the backend server running in some instances causing clashes on new rpe instance #263
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #263 +/- ##
==========================================
- Coverage 68.83% 68.76% -0.07%
==========================================
Files 110 111 +1
Lines 9022 9052 +30
Branches 402 398 -4
==========================================
+ Hits 6210 6225 +15
- Misses 2812 2827 +15 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
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.
Let's not comment out the e2e tests. You can re-factor later.
How long does the 10times re-launch test case take?
@ravikiranchollangi , 10 iterations takes around 45s, also, I will push all the e2e test cases in the next PR, it needed some fixes which is been done, requesting to for your approval to this PR so we have a solution for Shutdown issue, and I shall raise one more PR for the e2e test cases. |
@ravikiranchollangi SIGTERM is not a forced shutdown, to my knowledge, it’s a polite request for the process to terminate. When a process receives SIGTERM, it has the opportunity to perform any cleanup tasks before it exits, such as closing files, saving state, or logging. This makes SIGTERM a preferred way to smoothly (not forcibly) stop a process. SIGKILL is a forced shutdown. I believe SIGTERM is not essential if SIGINT is the only signal sent by the frontend, but keeping both signals allows our backend to smoothly handle termination requests. |
Adding a screenshot confirms that the backend honors the kill signal sent by the front end. |
@NadeemYaseen , check the lastest changes, as discussed, I have created shutdown.py API, called the same api in restapi_server.py, and in cleanup.js I have called the shutdown api, please check the changes once, so we can discuss further. the push will fail because of yml changes that we did previously. |
@NadeemYaseen , fetch the latest changes, just removed the need to have axios and called the shutdown function in serverapi.js, and after that called n cleanup.js. |
@shivaahir158 I am facing the below issue, am I missing something, |
@NadeemYaseen , fixed. check now. |
User can verify if the process has shut down, in the log file, fyi @NadeemYaseen :