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?
Asked
Active
Viewed 3.1k times
2 Answers
54
qalter jobid -l walltime=X
You can read the qalter
docs here.

Adam Millerchip
- 20,844
- 5
- 51
- 74

dbeer
- 6,963
- 3
- 31
- 47
-
The link is broken, unfortunately. If I use this command, while the job is still queued, will this als alter PBS variables in my jobsscript that calculate a timeout time based on the walltime? In other words, is the script already executed, expect for the read PBS-options? – Bernhard Jun 27 '13 at 07:27
-
2The link should be fixed now. Unfortunately, this cannot alter the variables that already exist inside the job process but it will make it so that the mom doesn't kill the job until the new walltime is reached. – dbeer Nov 23 '13 at 06:19
-
18However, in some systems, this may not work, resulting in a `qalter: Unauthorized Request` if the job has already started running. This is generally to avoid malicious users from requesting a small amount of time so they get queued quickly and then changing it to hog the resources. If you need to correct the walltime, do so quickly, while the job is still queued. – KevinL Jan 16 '15 at 15:56
-
1Obviously you can overwrite the unauthorized request as root. – Martin - マーチン Jan 22 '16 at 12:08
-
It not easy to get root permission. – Shixiang Wang Apr 05 '18 at 04:17
3
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.

Abdur Rahman
- 1,067
- 4
- 10