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

Re: [Condor-users] how to resrict job run time



>How about the following:
>periodic_hold = (JobStatus == 2) && ((CurrentTime - JobCurrentStartDate) >
>$(maxRunTime))
>periodic_release = TRUE
>
>This worked for our purpose, which was for a job to restart after a certain
>amount of time.  We had jobs that for some reason would "run away"
>sometimes, but when they were restarted would work just fine, so the goal
>here was to restart (vanilla job, so hold and then immediately release would
>do the trick).
>
>Michael.

Thanks Michael. That was a good hint. Just setting 

maxRunTime      = 600
periodic_remove = (JobStatus == 2) && ((CurrentTime - JobCurrentStartDate) > $(maxRunTime))

does the job.

but I still wonder, why the value of RemoteWallClockTime is not updated 
properly...

Jens