Skip to content

Commit

Permalink
ray stop sends SIGKILL instead of SIGTERM (ray-project#5354)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo authored and robertnishihara committed Aug 2, 2019
1 parent 1eaa57c commit 25b5bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 25b5bd1

Please sign in to comment.