mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
Kill dashboard and reporter in ray stop. (#4116)
This commit is contained in:
parent
ba52caff37
commit
688a0d17e6
1 changed files with 16 additions and 0 deletions
|
@ -440,6 +440,22 @@ def stop():
|
|||
],
|
||||
shell=True)
|
||||
|
||||
# Find the PID of the Ray reporter process and kill it.
|
||||
subprocess.call(
|
||||
[
|
||||
"kill $(ps aux | grep reporter.py | grep -v grep | "
|
||||
"awk '{ print $2 }') 2> /dev/null"
|
||||
],
|
||||
shell=True)
|
||||
|
||||
# Find the PID of the Ray dashboard process and kill it.
|
||||
subprocess.call(
|
||||
[
|
||||
"kill $(ps aux | grep dashboard.py | grep -v grep | "
|
||||
"awk '{ print $2 }') 2> /dev/null"
|
||||
],
|
||||
shell=True)
|
||||
|
||||
# Find the PID of the jupyter process and kill it.
|
||||
try:
|
||||
from notebook.notebookapp import list_running_servers
|
||||
|
|
Loading…
Add table
Reference in a new issue