Adding time to a running slurm job

user1701545 picture user1701545 · Feb 9, 2015 · Viewed 30.2k times · Source

I have a job running a linux machine managed by slurm. Now that the job is running for a few hours I realize that I underestimated the time required for it to finish and thus the value of the --time argument I specified is not enough. Is there a way to add time to an existing running job through slurm?

Answer

Carles Fenoy picture Carles Fenoy · Feb 9, 2015

Use the scontrol command to modify a job

scontrol update jobid=<job_id> TimeLimit=<new_timelimit>

Use the SLURM time format, eg. for 8 days 15 hours: TimeLimit=8-15:00:00

Requires admin privileges, on some machines.

Will be allowed to users only if the job is not running yet, on most machines.