I’m trying run a recipe for multiple subjects/sessions in parallel, using the SLURM scheduler. When I just specify the batch file, it only schedules a 2-job array of tasks for the first two of 24 sessions. If I specify the sessions explicitly with the “sessions” parameter, then it works as expected, scheduling all 24. It was my understanding that when the sessions aren’t explicitly stated, all the sessions specified in the batch file would be run.
The qunex call that does not work as expected is:
qunex_container run_recipe \
--recipe_file="${STUDY_FOLDER}/processing/recipe.yaml" \
--recipe="ncanda_hcp" \
--bash_post="${BASH_POST}" \
--bind="${STUDY_FOLDER}:${STUDY_FOLDER}" \
--container="${QUNEX_CONTAINER}" \
--steps="hcp_pre_freesurfer" \
--scheduler="SLURM,array,time=23:59:59,mem=12G,jobname=ncanda,partition=batch"
And if I add the line with those 24 sessions specified in the batch file (--sessions="S00081,S00096,S00097,S00108,S00131,S00135,S00141,S00159,S00162,S00164,S00168,S00170,S00176,S00185,S00187,S00192,S00195,S00215,S00230,S00253,S00269,S00271,S00290,S00298"
) then it works as expected, and creates the 24 jobs.
My batch file and recipe yaml file (saved as a .txt) are attached.
batch.txt (14.0 KB)
recipe.txt (1.3 KB)
Thanks very much for any help!