[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Create jobs with time restriction


You have mentioned to kill the job hence following link may not apply to you but still sharing it as it's a good example of taking an action on a job running more than stipulated time.Â


Coming back to your question basically you need to use STARTD evacuate condition. You may need to set the following on your executor nodes to kill the jobs running for more than 3600s (i.e 1 hour)

Maxruntime = 3600
Runtimeexceeded = (totaljobruntime > $(maxruntime))
PREEMPT = $(RunTimeExceeded)

Hope if helps.Â

Thanks & Regards,
Vikrant Aggarwal

On Mon, Jul 22, 2019 at 10:41 AM Nishit Shah <nishitshah2017@xxxxxxxxx> wrote:

I want to execute jobs with time limit on each job.
Like may be 1 hr (at max) so any job executing in execute node should either complete the job within one hour or it will be killed.

I tried using maxjobretirementtime = 60 in the job description file just to check whether its gets killed within 60 secs, but it is not working.

I am not sure whether the provided command is actually the one that should be used.

I want to know what should be mentioned in the job description file and also in the machine condor_config.local file if I want to set for every job running in particular execute node to be completed with a certain time frame.

I am running condor in Ubuntu 18.04 and condor version is 8.8.4

Please let me know if there are any other file I need to provide.

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: