()
| 45 | |
| 46 | |
| 47 | def get_slurm_nodes() -> List[str]: |
| 48 | assert is_inside_slurm() |
| 49 | output = subprocess.check_output(["scontrol", "show", "hostnames"]) |
| 50 | return [node.strip() for node in output.decode().split("\n") if node.strip()] |
| 51 | |
| 52 | |
| 53 | def is_inside_slurm() -> bool: |
no test coverage detected