From 25b5bd15308698438bc0b857bc76568c98759bb2 Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Fri, 2 Aug 2019 14:46:03 -0700 Subject: [PATCH] `ray stop` sends `SIGKILL` instead of `SIGTERM` (#5354) --- python/ray/scripts/scripts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 4c8b0abba..154007871 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -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.