mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 09:39:46 +08:00
Set the process title in workers and actors (#3219)
This commit is contained in:
committed by
Robert Nishihara
parent
f3efcd2342
commit
725df3a485
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user