Reordering an item in a PBS queue

Iv'e introduced several jobs at PBS. Now I want the task that I sent to be the last to be the first.

One option is to save all preview jobs (using qhold). The problem is that I used the -W depend=afterok: switch to turn on tasks right after the task is completed.

So my PBS turn looks something like this:

 468743.server username queue_name job1 4828 6 36 46gb 24:00 R 16:12 468744.server username queue_name job1_cont -- 6 36 46gb 24:00 H -- 468745.server username queue_name job1_cont -- 6 36 46gb 24:00 H -- 468746.server username queue_name job1_cont -- 6 36 46gb 24:00 H -- 468747.server username queue_name job1_cont -- 6 36 46gb 24:00 H -- 468748.server username queue_name job1_cont -- 6 36 46gb 24:00 H -- 468743.server username queue_name job2 4828 6 36 46gb 24:00 R 16:12 468744.server username queue_name job2_cont -- 6 36 46gb 24:00 H -- 468745.server username queue_name job2_cont -- 6 36 46gb 24:00 H -- 468746.server username queue_name job2_cont -- 6 36 46gb 24:00 H -- 468747.server username queue_name job2_cont -- 6 36 46gb 24:00 H -- 468748.server username queue_name job2_cont -- 6 36 46gb 24:00 H -- 468753.server username queue_name NewJob -- 6 36 46gb 24:00 H -- 468754.server username queue_name NewJob_cont -- 6 36 46gb 24:00 H -- 468755.server username queue_name NewJob_cont -- 6 36 46gb 24:00 H -- 

Now I want NewJob , which is the last in the line, to start after the completion of the first job in {job1, job2} and before any of "_cont". And I want NewJob_cont jobs to run after NewJob.

Can I change the position of NewJob in a row without destroying the remaining wait queue hierarchy?

+8
pbs
source share
1 answer

You can use qalter to change dependencies for jobs. You can do:

 qalter 468744 -W depend=after:468753 qalter 468753 -W depend=after:468743 

This will ensure that 468744 is not executed until a new task and a new task are completed before the first task. Just as you can add post-dependencies to queued jobs, you can also add other kinds of dependencies.

+2
source share

All Articles