[slurm-users] Re: Lua script

2024-03-06 Thread Paul Raines via slurm-users
Alternativelly consider setting EnforcePartLimits=ALL in slurm.conf -- Paul Raines (http://help.nmr.mgh.harvard.edu) The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient

[slurm-users] Re: Lua script

2024-03-06 Thread Diego Zuccato via slurm-users
Il 06/03/2024 13:49, Gestió Servidors via slurm-users ha scritto: And how can I reject the job inside the lua script? Just use return slurm.FAILURE and job will be refused. -- Diego Zuccato DIFA - Dip. di Fisica e Astronomia Servizi Informatici Alma Mater Studiorum - Università di Bologna

[slurm-users] Re: Lua script

2024-03-06 Thread Gestió Servidors via slurm-users
And how can I reject the job inside the lua script? -- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

[slurm-users] Re: Lua script

2024-03-06 Thread Diego Zuccato via slurm-users
I don't know why that happens (other than you're opening a comment and not closing it, IIUC), but it would probably be less surprising to just reject the submission than reduce the limit. In the (rare...) case the user actually needs all the time requested, you risk wasting resources. If you rej

[slurm-users] Lua script

2024-03-06 Thread Gestió Servidors via slurm-users
Hello, I'm writing a small lua script that for modify "TimeLimit" of a submited job if user has configured a TimeLimit bigger that configured in the partition. So, is TimeLimit for partition is, for example, 4 hours (04:00:00) and user submit his/her job with a TimeLimit of 5 hours, lua script