mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Don't stop Jupyter notebook in ray stop. (#5387)
This commit is contained in:
parent
cff72d1a54
commit
61b23a9a70
1 changed files with 0 additions and 14 deletions
|
@ -410,20 +410,6 @@ def stop():
|
|||
"' | grep -v grep | " + "awk '{ print $2 }') 2> /dev/null")
|
||||
subprocess.call([command], shell=True)
|
||||
|
||||
# Find the PID of the jupyter process and kill it.
|
||||
try:
|
||||
from notebook.notebookapp import list_running_servers
|
||||
pids = [
|
||||
str(server["pid"]) for server in list_running_servers()
|
||||
if "/tmp/ray" in server["notebook_dir"]
|
||||
]
|
||||
subprocess.call(
|
||||
["kill -9 {} 2> /dev/null".format(" ".join(pids))], shell=True)
|
||||
except ImportError:
|
||||
pass
|
||||
except Exception:
|
||||
logger.exception("Error shutting down jupyter")
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.argument("cluster_config_file", required=True, type=str)
|
||||
|
|
Loading…
Add table
Reference in a new issue