mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Send sigkill not sigterm because aiohttp swallows sigterm and takes a long time
I'm not smart enough to know exactly why
This commit is contained in:
@@ -211,12 +211,11 @@ class Web(blenderbim.core.tool.Web):
|
|||||||
with open(pid_file, "w") as f:
|
with open(pid_file, "w") as f:
|
||||||
json.dump(pids, f, indent=4)
|
json.dump(pids, f, indent=4)
|
||||||
|
|
||||||
ws_process.terminate()
|
ws_process.kill()
|
||||||
ws_process.wait()
|
|
||||||
ws_process = None
|
ws_process = None
|
||||||
|
|
||||||
cls.set_is_running(False)
|
cls.set_is_running(False)
|
||||||
print("Websocket server terminated successfully")
|
print("Websocket server killed successfully")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def has_started(cls, port):
|
def has_started(cls, port):
|
||||||
|
|||||||
Reference in New Issue
Block a user