Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
DarkLight1337 2025-10-17 08:30:25 +00:00
parent 481e1e247a
commit ba3e8dca97

View File

@ -98,9 +98,9 @@ def benchmark_one_run(
subprocess.run(benchmark_cmd, check=True)
finally:
if server_process.poll() is None:
# Process might already be terminated
# In case some processes have been terminated
with contextlib.suppress(ProcessLookupError):
# Kill entire process group
# We need to kill both API Server and Engine processes
os.killpg(os.getpgid(server_process.pid), signal.SIGKILL)
with result_path.open("rb") as f: