[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user