Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prioritizing Jobs on Sun Grid Engine Queue

I have a bunch of jobs lined up for processing on a Sun Grid Engine queue, but I have just submitted a new job that I would like to prioritize. (The new job is 163981 in the left-most column.) Is there a command I can run to ask the server to process the 163981 job next, rather than the next job in the 140522 job array? I would be grateful for any advice others can offer on this question.

enter image description here

like image 364
duhaime Avatar asked Dec 08 '25 20:12

duhaime


1 Answers

With admin/manager access you could use:

qalter -p <positive number up to 1024>

[job id of the job you want to run sooner]

Without admin/manager access you could use:

qalter -p <negative numeber down to -1023> 

[job id of the other job you don't want to run next]

These may not work depending on how long a lag time between when the older job was submitted and the current time and how much weight the administrator has put on the waiting time.

Another option without admin/manager access would be to put the job you don't want to run on hold.

qalter -h u <job id of the job you don't want to run now> 

This will make the job you want to run be the only one eligible. Once it has started running you can remove the hold on the other job with

qalter -h U <job id>
like image 129
LinesR Avatar answered Dec 11 '25 09:12

LinesR