Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a way to change the walltime for currently running PBS job

Tags:

pbs

I underestimated the amount of time a job would take. Would it be possible to change the time limit for a job while it is running?

like image 291
Farhat Avatar asked Nov 04 '11 07:11

Farhat


People also ask

How do I submit a job to PBS script?

Submitting the Job To do that, we use the 'qsub' command and give it the name of the . pbs script. Since the script contains the PBS directives for everything our job needs, we don't need to specify any other commandline options.

What is PBS QSUB?

STANDARD INPUT The qsub command reads the script for the job from standard input if the script operand is missing or is the single character "-". INPUT FILES The script file is read by the qsub command. Qsub acts upon any directives found in the script.


2 Answers

qalter jobid -l walltime=X 

You can read the qalter docs here.

like image 156
dbeer Avatar answered Sep 21 '22 17:09

dbeer


Yes You can use:

qalter [-l resource_list] Job_ID 

For Example:

qalter -l walltime=01:00:00 121214 

Also, try to do it while the job is still queued because once it starts, this may not work & you will get a response "Unauthorized Request". Then you would need root permission to overwrite an unauthorized request.

like image 45
Abdur Rahman Avatar answered Sep 20 '22 17:09

Abdur Rahman