`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:

%.15i %.15A %.9u %.8a %.9P %8q %18j %.2t %.10M %.6D %4C %4c %R %Q

puts the priority as the last column.  I believe default sorting puts the
highest priority job at the top.

Michael


On Fri, Oct 5, 2018 at 7:13 AM Paul Edmon <ped...@cfa.harvard.edu> wrote:

> So if you use the showq utility it has functionality for that:
>
> https://github.com/fasrc/slurm_showq
>
> Happy to have contributors to this.
>
> -Paul Edmon-
>
> On 10/05/2018 09:56 AM, Alexandre Strube wrote:
>
> 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…
> --
> []
> Alexandre Strube
> su...@ubuntu.com
>
>
>

Reply via email to