-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly kill dev api-server (#11691)
Changes are: - await the process where we kill the server process when restarting. So that we don't race the new instance of httpServer with existing ones (while being killed). - try to gracefully kill the api server, if it's not killed within 2sec, SIGTERM it. - unrelated: moved a comment to the right place. I accidentally moved it wrong place while refactoring in the last PR.
- Loading branch information
1 parent
1b6823f
commit 96fc9a6
Showing
3 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Await and properly kill dev api-server (#11691) by @callingmedic911 | ||
|
||
Sometime the api-server doesn't get killed in time before the new instance is started. This change makes sure that we wait for the process. If it's not killed within 2 seconds with SIGTERM, we send a SIGKILL to it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters