ray stop sends SIGKILL instead of SIGTERM (#5354)

This commit is contained in:
Simon Mo
2019-08-02 14:46:03 -07:00
committed by Robert Nishihara
parent 1eaa57c98f
commit 25b5bd1530
+2 -2
View File
@@ -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.