Re: [slurm-users] Limit run time of interactive jobs

2023-05-08 Thread Angel de Vicente
Hello, Bjørn-Helge Mevik writes: >> A solution was suggested in >> https://serverfault.com/questions/1090689/how-can-i-set-up-interactive-job-only-or-batch-job-only-partition-on-a-slurm-clu >>> Interactive jobs have no script and job_desc.script will be empty / >> not set. >> >> So maybe

Re: [slurm-users] Limit run time of interactive jobs

2023-05-08 Thread Bjørn-Helge Mevik
Ole Holm Nielsen writes: > On 5/8/23 08:39, Bjørn-Helge Mevik wrote: >> Angel de Vicente writes: >> >>> But one possible way to something similar is to have a partition only >>> for interactive jobs and a different partition for batch jobs, and then >>> enforce that each job uses the right

Re: [slurm-users] Limit run time of interactive jobs

2023-05-08 Thread Ole Holm Nielsen
On 5/8/23 08:39, Bjørn-Helge Mevik wrote: Angel de Vicente writes: But one possible way to something similar is to have a partition only for interactive jobs and a different partition for batch jobs, and then enforce that each job uses the right partition. In order to do this, I think we can

Re: [slurm-users] Limit run time of interactive jobs

2023-05-08 Thread Angel de Vicente
Hi, Bjørn-Helge Mevik writes: > Wouldn't it be simpler to just refuse too long interactive jobs in > job_submit.lua? Yes, I guess. I proposed the idea of having different partitions because then the constraints are at the level of the partition, which is probably easier to handle than

Re: [slurm-users] Limit run time of interactive jobs

2023-05-08 Thread Bjørn-Helge Mevik
Angel de Vicente writes: > But one possible way to something similar is to have a partition only > for interactive jobs and a different partition for batch jobs, and then > enforce that each job uses the right partition. In order to do this, I > think we can use the Lua contrib module (check the

Re: [slurm-users] Limit run time of interactive jobs

2023-05-06 Thread Angel de Vicente
Hi Marko, Marko Markoc writes: > Quick question. Is there a way to limit the runtime on a partition > only for salloc ? I would like for batch jobs to have a default max > runtime of the partition but interactive jobs to have shortened > allowed runtime. I'm also interested in this (in my case

[slurm-users] Limit run time of interactive jobs

2023-05-05 Thread Marko Markoc
Hi All, Quick question. Is there a way to limit the runtime on a partition only for salloc ? I would like for batch jobs to have a default max runtime of the partition but interactive jobs to have shortened allowed runtime. Thanks!