12

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.

James Owers
  • 7,948
  • 10
  • 55
  • 71
  • 1
    Modifying a job is done with the `scontrol` command so it is in the `scontrol` man page that you would find the option's name https://slurm.schedmd.com/scontrol.html – damienfrancois Mar 30 '19 at 19:27

1 Answers1

24

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

scontrol update ArrayTaskThrottle=<count> JobId=<jobID>
Carles Fenoy
  • 4,740
  • 1
  • 26
  • 27