[Observability] log sub process killing in process manager force kill (#52314)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Ning Xie
2026-09-30 06:13:24 +00:00
committed by GitHub
parent 866fa130fa
commit 29773c722b
+5
View File
@@ -221,6 +221,11 @@ def kill_process_tree(pid: int):
# Send SIGKILL to all children first
for child in children:
with contextlib.suppress(ProcessLookupError):
logger.warning(
"[shutdown] force killing sub process %s pid %d",
child.name(),
child.pid,
)
os.kill(child.pid, signal.SIGKILL)
# Finally kill the parent