Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] how to resrict job run time
- Date: Fri, 27 Oct 2006 16:46:25 -0400
- From: Alexander Withers <alexw@xxxxxxx>
- Subject: Re: [Condor-users] how to resrict job run time
On Fri, Oct 27, 2006 at 05:58:47PM +0200, Jens Harting wrote:
> >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...
>
RemoteWallClockTime only gets updated when a job is evicted or exits.
Alex