MODULE 11 // 18:30

Scaling Workloads with Job Arrays & Dependencies

Automate parameter sweeps and multi-stage workflow dependencies using Slurm array jobs.

// KEY ARCHITECTURAL TAKEAWAYS

  • Use SLURM_ARRAY_TASK_ID for parallel batch runs.
  • Chain dependent jobs with --dependency=afterok.
REFERENCE IMPLEMENTATION // SNIPPET
#SBATCH --array=1-100%10
echo "Running task ID: $SLURM_ARRAY_TASK_ID"