()
| 41 | |
| 42 | |
| 43 | def print_logs(): |
| 44 | log_dir = os.path.join(os.getcwd(), "log") |
| 45 | log_file = os.path.join(log_dir, "workerlog.0") |
| 46 | |
| 47 | if not os.path.exists(log_file): |
| 48 | print(f"Log file {log_file} does not exist.") |
| 49 | return |
| 50 | |
| 51 | print(f"\n===== {log_file} start =====") |
| 52 | with open(log_file, "r") as f: |
| 53 | for line in f: |
| 54 | print(line, end="") |
| 55 | print(f"\n===== {log_file} end =====\n") |
| 56 | |
| 57 | |
| 58 | def run_with_timeout(target, args=(), kwargs={}, timeout=60 * 5): |
no test coverage detected