The job scheduler script for Slurm in the documentation uses a for loop to submit jobs:
#!/bin/bash
for i in {1..{n_jobs}}
do
sbatch script_redis_worker.sh
done
However this is not necessarily optimal, particularly if n_jobs is large. It can bog down the HPC system. An alternative is to use Slurm job arrays. I recommend that the docs are updated to suggest Slurm job arrays as an alternative.
The job scheduler script for Slurm in the documentation uses a for loop to submit jobs:
However this is not necessarily optimal, particularly if
n_jobs
is large. It can bog down the HPC system. An alternative is to use Slurm job arrays. I recommend that the docs are updated to suggest Slurm job arrays as an alternative.