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

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



Greetings,

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.

cheers,
Santanu