Hello,

Is there any DS in slurmctld which portrays the dynamic relative priority of pending jobs?

We are trying to use slurm for developing a scheduling solution and 1 of the problems we face at the outset is how to determine
the order of scheduling for pending jobs.

One option is to find scheduling iteration window begin & close pointers & cache the job ids as seen in order & then make them the priority order at that point of time.

( This means for 500 pending jobs, say, if we can find which are the slurmctld calls which mark the beginning & end of a sched iteration then we can use the scheduling order
of jobs as the relative priority order for that period of time, of course it may change depending on fairshare, user initiated priority modification etc. )

A concrete existing data structure showing the dynamic priority itself from slurmctld would be handy.

Help appreciated.

Thanks!

Bhaskar.