lst_auto_rta.utils.slurm.parse_reservation_state¶
- lst_auto_rta.utils.slurm.parse_reservation_state(scontrol_output: str) str [source]¶
Parse the state of a reservation from scontrol show res a_reservation output
- Parameters:
scontrol_output (str) – Output of `scontrol show res a_reservation
- Returns:
State of the reservation, eg INACTIVE, ACTIVE
- Return type:
str