mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 10:28:01 +08:00
Kill dashboard and reporter in ray stop. (#4116)
This commit is contained in:
committed by
Philipp Moritz
parent
ba52caff37
commit
688a0d17e6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user