mirror of
https://github.com/wassname/ray.git
synced 2026-07-20 12:40:20 +08:00
Try to enable dashboard (again) (#6069)
* Revert "Revert "Enable the Ray dashboard by default (#5976)" (#6068)"
This reverts commit 1a3e97cf23.
* fix tests that assume the dashboard isn't a job
* travis
This commit is contained in:
@@ -19,12 +19,13 @@ def test_get_webui(shutdown_only):
|
||||
webui_url = addresses["webui_url"]
|
||||
assert ray.get_webui_url() == webui_url
|
||||
|
||||
assert re.match(r"^http://\d+\.\d+\.\d+\.\d+:8080$", webui_url)
|
||||
assert re.match(r"^(localhost|\d+\.\d+\.\d+\.\d+):8080$", webui_url)
|
||||
|
||||
start_time = time.time()
|
||||
while True:
|
||||
try:
|
||||
node_info = requests.get(webui_url + "/api/node_info").json()
|
||||
node_info = requests.get("http://" + webui_url +
|
||||
"/api/node_info").json()
|
||||
break
|
||||
except requests.exceptions.ConnectionError:
|
||||
if time.time() > start_time + 30:
|
||||
|
||||
Reference in New Issue
Block a user