Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SLURM: Changing the maximum number of simultaneously running tasks for a running array job

Tags:

slurm

sbatch

I have set of an array job as follows:

sbatch --array=1:100%5 ...

which will limit the number of simultaneously running tasks to 5. The job is now running, and I would like to change this number to 10 (i.e. I wish I'd run sbatch --array=1:100%10 ...).

The documentation on array jobs mentions that you can use scontrol to change options after the job has started. Unfortunately, it's not clear what this option's variable name is, and I don't think it is listed in the documentation of the sbatch command here.

Any pointers well received.

like image 555
James Owers Avatar asked Dec 07 '25 01:12

James Owers


1 Answers

You can change the array throttling limit with the following command:

scontrol update ArrayTaskThrottle=<count> JobId=<jobID>
like image 79
Carles Fenoy Avatar answered Dec 11 '25 09:12

Carles Fenoy