为正在运行的贫民窟作业添加时间

我的工作是运行一台由 slurm 管理的 Linux 机器。 现在作业已经运行了几个小时,我意识到我低估了完成它所需的时间,因此我指定的 --time参数的值是不够的。是否有办法通过 slurm 为现有的运行作业增加时间?

50040 次浏览

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.

To build on the example provided above, you can also use "+" and "-" to increment / decrement the TimeLimit.

From the [scontrol man page][https://slurm.schedmd.com/scontrol.html]:

either specify a new time limit value or precede the time and equal sign with a "+" or "-" to increment or decrement the current time limit (e.g. "TimeLimit+=30")

We regularly get requests like "I need 3 more hours for job XXXXX to finish!!!", which would translate to:

scontrol update job=XXXXX TimeLimit=+03:00:00