Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] periodic expressions
- Date: Thu, 13 Oct 2005 08:59:46 -0500
- From: "Thomas Materna" <materna@xxxxxxxxxxxxx>
- Subject: Re: [Condor-users] periodic expressions
Hi again,
I forgot to mention: What I gave you in my previous email was found in
somebody else's submit file, I never tested it myself, so I'm not sure it
works ;-)
Thomas
>
> > Hi,
> >
> > I'd like to limit the run-time of a job so that the job
> gets restarted
> > when it runs longer than a specified time. I thought about using a
> > periodic_* expression in the submit file to do this, but
> I'm not sure
> > what would be the simplest way:
> >
> > To restart the job I have to use both hold and release expressions,
> > but how can I constrain them together to run the release after the
> > hold took place?
> >
> > I thought about something like this for the hold:
> >
> > periodic_hold = (JobStatus == 2 &&
> > ((ServerTime-JobCurrentStartDate) > 15000))
> >
> > But how to do the release? Any help is much appreciated!
> >
> > Cheers,
> > Szabolcs
>
> Hi Szabolcs,
>
> You can try somtehing siniliar to your periodic_hold expression:
> periodic_release = ((JobStatus==5) && (CurentTime -
> EnteredCurrentStatus) >
> 30)
> Which would release your job after holding it for 30s in this case.
>
> Thomas
>
> Cyclotron Institute, Texas A&M university ZIP 77843-3366
> (979)-845-1411 ext. 258
> Mobile: (979)-571-9782
>
> _______________________________________________
> Condor-users mailing list
> Condor-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>