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

Re: [Condor-users] max. time for a job to run

How to prevent a job from running longer than 4 days:

In the job submit file:

periodic_hold = JobStatus == 2 && (CurrentTime - EnteredCurrentStatus) > 3600*24*4

Or, if you prefer, you could put this in your condor configuration as part of a SYSTEM_PERIODIC_HOLD expression.


Santanu Das wrote:

What's the best way to restrict a job to run for certain amount of time (wall time)?
For example, a "max 4-days long" job, I've implemented this:

PREEMPT = ( (Activity == "Busy") && (State == "Claimed") && ($(ActivityTimer) > 5760) )
WANT_SUSPEND                    = FALSE

Is this the right way of doing this?
Thanks in advance for your help.

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

The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/