[slurm-users] set SLURM_JOB_NAME programmatically from within job script
Andreas Hilboll
hilboll+slurm at uni-bremen.de
Thu Mar 22 15:16:01 MDT 2018
Hi,
I'd like to be able to set the SLURM_JOB_NAME from within the
script I'm submitting to `sbatch`. So, e.g., with the script
`myscript.sh`,
#!/bin/bash
export SLURM_JOB_NAME='myname'
sleep 120
and then `sbatch myscript.sh`, I'd like the job's name to be
'myname'.
Is this somehow possible? When I tried the above approach, it
didn't work (squeue reported the job's name to be 'myscript.sh').
Thanks for your help,
Andreas
More information about the slurm-users
mailing list