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

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?


Solution 1:

qalter jobid -l walltime=X

You can read the qalter docs here.

Solution 2:

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.