<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">`squeue` has some output options which may do the trick for you. `-o %Q` shows the priority and you can use `--sort` to sort by priority. I have $SQUEUE_FORMAT set:</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default"><font face="monospace">%.15i %.15A %.9u %.8a %.9P %8q %18j %.2t %.10M %.6D %4C %4c %R %Q</font></div><div class="gmail_default"><font face="monospace"><br></font></div><div class="gmail_default"><font face="monospace">puts the priority as the last column. I believe default sorting puts the highest priority job at the top.</font></div><div class="gmail_default"><font face="monospace"><br></font></div><div class="gmail_default"><font face="monospace">Michael</font></div><div class="gmail_default"><font face="monospace"><br></font></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"3","compose-window":{"secure":false}}"></div><br><div class="gmail_quote" style=""><div dir="ltr">On Fri, Oct 5, 2018 at 7:13 AM Paul Edmon <<a href="mailto:pedmon@cfa.harvard.edu">pedmon@cfa.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>So if you use the showq utility it has functionality for that:</p>
<p><a class="m_7892609997764346337moz-txt-link-freetext" href="https://github.com/fasrc/slurm_showq" target="_blank">https://github.com/fasrc/slurm_showq</a></p>
<p>Happy to have contributors to this.</p>
<p>-Paul Edmon-<br>
</p>
<br>
<div class="m_7892609997764346337moz-cite-prefix">On 10/05/2018 09:56 AM, Alexandre
Strube wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Is there a way to show the actual position in the queue,
given the current priority? It’s possible to compute it, but I
would like to see it as an ordinal…</div>
-- <br>
<div class="m_7892609997764346337gmail_signature" data-smartmail="gmail_signature">[]<br>
Alexandre Strube<br>
<a href="mailto:surak@ubuntu.com" target="_blank">surak@ubuntu.com</a></div>
</div>
</blockquote>
<br>
</div>
</blockquote></div></div>