MCPcopy
hub / github.com/ray-project/ray / print_dashboard_log

Function print_dashboard_log

python/ray/_common/tests/test_usage_stats.py:95–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def print_dashboard_log():
96 session_dir = ray._private.worker.global_worker.node.address_info["session_dir"]
97 session_path = Path(session_dir)
98 log_dir_path = session_path / "logs"
99
100 paths = list(log_dir_path.iterdir())
101
102 contents = None
103 for path in paths:
104 if "dashboard.log" in str(path):
105 with open(str(path), "r") as f:
106 contents = f.readlines()
107 from pprint import pprint
108
109 pprint(contents)
110
111
112@pytest.fixture

Callers 2

test_usage_report_e2eFunction · 0.85

Calls 2

listFunction · 0.85
openFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…