Hi Jessica,
thanks a lot for your help and good explanation -
scontrol update job=$SLURM_JOB_ID name=myname
does exactly what I want :)
Cheers,
Andreas
Jessica Nettelblad writes:
Hi Andreas,
The Slurm controller has job names in its own data structure.
The Slurm controller job nam
Hi Andreas,
The Slurm controller has job names in its own data structure.
The Slurm controller job name is set to the name of the job script by
default, or to a name you define for example with -J.
The environment variable SLURM_JOB_NAME is then set to this Slurm
controller job name by job start.
On Friday, 23 March 2018 8:16:01 AM AEDT Andreas Hilboll wrote:
> Is this somehow possible? When I tried the above approach, it
> didn't work (squeue reported the job's name to be 'myscript.sh').
It needs to be set before submission for sbatch to use it, a script cannot
affect the environment o
If there a reason you can't set the job name with either "sbatch
--job-name=myname myscript.sh" or this in your script?
#SBATCH --job-name=myname
That way SLURM_JOB_NAME should be set to what you expect.
-Original Message-
From: slurm-users on behalf of Andreas
Hilboll
Reply-To: