()
| 93 | |
| 94 | |
| 95 | def 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 |
no test coverage detected
searching dependent graphs…