[slurm-users] Error in job_submit.lua conditional?
Marcus Wagner
wagner at itc.rwth-aachen.de
Tue Feb 5 12:55:19 UTC 2019
Hi Prentice,
I also hate lua sometimes, as it does not complain, when you hope it
would complain.
It is called 'userid', not 'user_id', so the first part is all the time
false ;)
Best
Marcus
On 2/4/19 11:27 PM, Prentice Bisbal wrote:
> Can anyone see an error in this conditional in my job_submit.lua?
>
> if ( job_desc.user_id == 28922 or job_desc.user_id == 41266 ) and
> ( job_desc.partition == 'general' or job_desc.partition ==
> 'interruptible' ) then
> job_desc.qos = job_desc.partition
> return slurm.SUCCESS
> end
>
> I am one if those user id's but if I submit a job to partition
> 'interruptible', without specifying a QOS, it still gets assigned to
> the default QOS, which is 'general':
>
> cat mpihello.sbatch
> #!/bin/bash
>
> #SBATCH -n 32
> #SBATCH -p interruptible
> #SBATCH -t 00:01:00
> #SBATCH -J mpihello
> #SBATCH -o mpihello-%j.out
> #SBATCH -e mpihello-%j.err
> #SBATCH --mail-type=ALL
>
> module load gcc/7.3.0
> module load openmpi/3.0.0
> srun --mpi=pmi2 ./mpihello
>
> $ scontrol show job 433953 | grep QOS
> Priority=2512 Nice=0 Account=unix QOS=general
>
> The logic of that conditional seems pretty simple, and I'm using
> similar compound conditionals throughout my job_submit.lua script.
> Can't figure out where the mistake is in this one.
>
--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
wagner at itc.rwth-aachen.de
www.itc.rwth-aachen.de
More information about the slurm-users
mailing list