lst_auto_rta.utils.slurm.parse_slurm_nodes

lst_auto_rta.utils.slurm.parse_slurm_nodes(slurm_reservations: List[str], slurm_account: str) Dict[str, List[str]][source]

Run scontrol show res -u `slurm_account and to get the output.

Parameters:
  • slurm_reservations (List[str]) – List of slurm reservation that RTA will use (all nodes in the reservation used)

  • slurm_account (str) – slurm account of the RTA, to use the slurm reservations

Notes

The nodes belonging to reservation which state is not “ACTIVE” are discarded !

Returns:

List of slurm nodes available for RTA, per reservation.

Return type:

Dict[str, List[str]]