Set the process title in workers and actors (#3219)

This commit is contained in:
Eric Liang
2018-11-06 14:59:22 -08:00
committed by Robert Nishihara
parent f3efcd2342
commit 725df3a485
8 changed files with 64 additions and 9 deletions
+7 -1
View File
@@ -388,6 +388,12 @@ def stop():
"grep -v grep | awk '{ print $2 }') 2> /dev/null"
],
shell=True)
subprocess.call(
[
"kill -9 $(ps aux | grep ' ray_' | "
"grep -v grep | awk '{ print $2 }') 2> /dev/null"
],
shell=True)
# Find the PID of the Ray log monitor process and kill it.
subprocess.call(
@@ -591,7 +597,7 @@ export IFS="
# Call sudo to prompt for password before anything has been printed.
sudo true
workers=$(
ps aux | grep default_worker.py | grep -v grep | grep -v raylet/raylet
ps aux | grep ' ray_' | grep -v grep
)
for worker in $workers; do
echo "Stack dump for $worker";