mockslurm.mock_squeue

Implement a mock of the squeue command of slurm.

The squeue -o, –format argument is supported except for the %all directive

Functions

count_nodes(nodelist)

Count the number of nodes requested by users in the nodelist

main()

parse_squeue_format(squeue_format_str)

Convert squeue format argument (-o format) to a python format string and list of function filling the values of the format string for each job DB row.