Opened 9 months ago

Closed 9 months ago

#1565 closed enhancement (fixed)

Get queue number for waiting jobs

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Job scheduler extension v1.13
Component: net.sf.basedb.opengrid Keywords:
Cc:

Description

With slurm it should be possible to get the currently pending jobs in priority order by issuing squeue --sort=-p --states=PD. If we have jobs that are waiting it would be nice to check this list and update the job status message in BASE with something like: Queue number: 15.

This may need some changes on the BASE side as well...

Change History (1)

comment:1 by Nicklas Nordborg, 9 months ago

Owner: set to Nicklas Nordborg
Resolution: fixed
Status: newclosed

In 7568:

Fixes #1565: Get queue number for waiting jobs

This was relatively easy to implement. The actual command used is squeue --sort=-p --states=PD -o %i which gives us a list of job ID values. The queue number is the simply the index of each entry in the list.

The information in BASE can be updated via a ProgressReporter so changes are not critical, except that the 'View job' dialog doesn't refresh itself until there is a state change so we have to manually refresh it. But this can also easily be fixed.

Note: See TracTickets for help on using tickets.