lst_auto_rta.utils.slurm

Functions

job_statistics_from_squeue_output(squeue_output)

Parse job statistics from squeue -u lstrta --format="%T,%R"

parse_JOBID_in_squeue_CSV_output(...)

Parses the output of a squeue command, formatted as CSV to retrieve the JOB ID of listed jobs.

parse_nodes_in_scontrol_show_res_output(...)

Parse a string containing scontrol show res output to find nodes names.

parse_reservation_state(scontrol_output)

Parse the state of a reservation from scontrol show res a_reservation output

parse_slurm_job_ID(slurm_reservations, ...)

Run squeue to parse job IDs.

parse_slurm_nodes(slurm_reservations, ...)

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