Read status file and check if the process is alive. Return (pid, connection_name) on success. Raise BadStatus if something's wrong.
(status_file: str)
| 686 | |
| 687 | |
| 688 | def get_status(status_file: str) -> tuple[int, str]: |
| 689 | """Read status file and check if the process is alive. |
| 690 | |
| 691 | Return (pid, connection_name) on success. |
| 692 | |
| 693 | Raise BadStatus if something's wrong. |
| 694 | """ |
| 695 | data = read_status(status_file) |
| 696 | return check_status(data) |
| 697 | |
| 698 | |
| 699 | def check_status(data: dict[str, Any]) -> tuple[int, str]: |
no test coverage detected
searching dependent graphs…