Hi Gennaro, I tried that. It doesnt even queue the job with an error: sbatch: unrecognized option '--array=1-24' sbatch: error: Try help for more information.
Best, Renat. ________________________________________ From: slurm-users [slurm-users-boun...@lists.schedmd.com] On Behalf Of Gennaro Oliva [oliv...@na.icar.cnr.it] Sent: Thursday, November 09, 2017 3:40 PM To: Slurm User Community List Subject: Re: [slurm-users] introduce short delay starting multiple parallel jobs with srun Hi Renat, On Thu, Nov 09, 2017 at 03:09:17PM +0100, Yakupov, Renat /DZNE wrote: > I would like some suggestions on how to spread out in time the start > of multiple parallel jobs with srun. I would use: sbatch --array=... As far as I know srun doesn't support arrays. > Is there a way to get a task number? I know there is > SLURM_ARRAY_TASK_ID variable, but all job array related variables dont > work for me. I guess, job array capabilities arent enable on our > SLURM. environment variables should work under sbatch, so you can use something like: sleep $((SLURM_ARRAY_TASK_ID*5)) where array index ranges from 0 to n-1. Regards -- Gennaro Oliva