mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 08:07:54 +08:00
Fix some paths /tmp/raylogs -> /tmp/ray. (#3189)
This commit is contained in:
committed by
Philipp Moritz
parent
5822aa2388
commit
e495ab5e7c
@@ -189,7 +189,7 @@ def get_or_create_head_node(config, config_file, no_restart, restart_only, yes,
|
||||
logger.info("Head node up-to-date, IP address is: {}".format(
|
||||
provider.external_ip(head_node)))
|
||||
|
||||
monitor_str = "tail -n 100 -f /tmp/raylogs/monitor-*"
|
||||
monitor_str = "tail -n 100 -f /tmp/ray/session_*/logs/monitor*"
|
||||
for s in init_commands:
|
||||
if ("ray start" in s and "docker exec" in s
|
||||
and "--autoscaling-config" in s):
|
||||
|
||||
@@ -402,7 +402,7 @@ def stop():
|
||||
from notebook.notebookapp import list_running_servers
|
||||
pids = [
|
||||
str(server["pid"]) for server in list_running_servers()
|
||||
if "/tmp/raylogs" in server["notebook_dir"]
|
||||
if "/tmp/ray" in server["notebook_dir"]
|
||||
]
|
||||
subprocess.call(
|
||||
["kill {} 2> /dev/null".format(" ".join(pids))], shell=True)
|
||||
|
||||
Reference in New Issue
Block a user