mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 00:39:32 +08:00
ray stop sends SIGKILL instead of SIGTERM (#5354)
This commit is contained in:
committed by
Robert Nishihara
parent
1eaa57c98f
commit
25b5bd1530
@@ -397,8 +397,8 @@ def stop():
|
||||
]
|
||||
|
||||
for process in processes_to_kill:
|
||||
command = ("kill $(ps aux | grep '" + process + "' | grep -v grep | " +
|
||||
"awk '{ print $2 }') 2> /dev/null")
|
||||
command = ("kill -9 $(ps aux | grep '" + process +
|
||||
"' | grep -v grep | " + "awk '{ print $2 }') 2> /dev/null")
|
||||
subprocess.call([command], shell=True)
|
||||
|
||||
# Find the PID of the jupyter process and kill it.
|
||||
|
||||
Reference in New Issue
Block a user