mockslurm.mock_squeue.count_nodes¶
- mockslurm.mock_squeue.count_nodes(nodelist: str) int [source]¶
Count the number of nodes requested by users in the nodelist
- Parameters:
nodelist (str) – Nodelist string in slurm format: comma separated list of nodes or node ranges example: “cp12,cp18”, “cp[10-14],cp28”
- Returns:
Number of nodes concerned by the nodelist
- Return type:
int