diff --git a/docs.it4i/general/job-arrays.md b/docs.it4i/general/job-arrays.md index 3a438f0cbc3fae2e10bccbe43a6e25eb326d8bba..75ccbc696791f98b300c134f8d26ba032b0cd587 100644 --- a/docs.it4i/general/job-arrays.md +++ b/docs.it4i/general/job-arrays.md @@ -1,19 +1,16 @@ -!!!warning - This page has not been updated yet. The page does not reflect the transition from PBS to Slurm. - # Job Arrays -A job array is a compact representation of many jobs called subjobs. Subjobs share the same job script, and have the same values for all attributes and resources, with the following exceptions: +A job array is a compact representation of many jobs called tasks. Tasks share the same job script, and have the same values for all attributes and resources, with the following exceptions: -* each subjob has a unique index, $PBS_ARRAY_INDEX -* job Identifiers of subjobs only differ by their indices -* the state of subjobs can differ (R, Q, etc.) +* each task has a unique index, `$SLURM_ARRAY_TASK_ID` +* job Identifiers of tasks only differ by their indices +* the state of tasks can differ -All subjobs within a job array have the same scheduling priority and schedule as independent jobs. An entire job array is submitted through a single `qsub` command and may be managed by `qdel`, `qalter`, `qhold`, `qrls`, and `qsig` commands as a single job. +All tasks within a job array have the same scheduling priority and schedule as independent jobs. An entire job array is submitted through a single `sbatch` command and may be managed by `qdel`, `qalter`, `qhold`, `qrls`, and `qsig` commands as a single job. ## Shared Jobscript -All subjobs in a job array use the very same single jobscript. Each subjob runs its own instance of the jobscript. The instances execute different work controlled by the `$PBS_ARRAY_INDEX` variable. +All tasks in a job array use the very same single jobscript. Each task runs its own instance of the jobscript. The instances execute different work controlled by the `$SLURM_ARRAY_TASK_ID` variable. Example: