Hi Ansgar,

This is indeed what I was looking for: I was not aware of PreemptExemptTime.

From my cursory glance at the documentation, it seems that PreemptExemptTime is QOS-based and not job based though. Is that correct? Or could it be set per-job, perhaps on a prolog/submit lua script? I'm thinking that the user could use the regular wallclock limit setting in slurm and the script could remove that and use it to set the PreemptExemptTime.

Thanks,
Davide

On Thu, Jun 12, 2025 at 3:56 AM Ansgar Esztermann-Kirchner via slurm-users <slurm-users@lists.schedmd.com> wrote:
Hi Davide,

I think it should be possible to emulate this via preemption: if you
set PreemptMode to CANCEL, a preempted job will behave just as if it
reached the end of its wall time. Then, you can use PreemptExemptTime
as your soft wall time limit -- the job will not be preempted before
PreemptExemptTime has passed.

See https://slurm.schedmd.com/preempt.html


Best,

A.

--
Ansgar Esztermann
Sysadmin Dep. Theoretical and Computational Biophysics
https://www.mpinat.mpg.de/person/11315/3883774

--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-leave@lists.schedmd.com