foreach jobarray code example
Example 1: slurm array job
sbatch --array=x-y submission.script
Example 2: sbatch array set max jobs at once
sbatch --array=x-y%z submission.script
sbatch --array=x-y submission.script
sbatch --array=x-y%z submission.script