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

Re: [Condor-users] SYSTEM_PERIODIC_HOLD hold help



can anyone help ?



On Wed, Mar 10, 2010 at 8:24 PM, Mag Gam <magawake@xxxxxxxxx> wrote:
> I need some help with time of day condor policy
> (http://www.cs.wisc.edu/condor/manual/v6.6/3_6Startd_Policy.html#SECTION00469300000000000000).
>
> I currently have something like this:
>
> SYSTEM_PERIODIC_HOLD = JobStatus ==2 && (RemoteWallClockTime -
> CumulativeSuspensionTime) > 10800
>
> But for Friday, Saturday and Sunday I would like the value to be
>
> SYSTEM_PERIODIC_HOLD = JobStatus ==2 && (RemoteWallClockTime -
> CumulativeSuspensionTime) > 32400
>
> I was thinking something like this:
>
> SYSTEM_PERIDIOC_HOLD = JobStatus == 2 && ( \
>  (((clockday == 0) || (clockday == 6) ) && (( (RemoteWallClockTime -
> CumulativeSuspensionTime) > 32400 ))) ||\
>  (((clockday > 0) || (clockday < 6) ) && (( (RemoteWallClockTime -
> CumulativeSuspensionTime) > 10800 ))) \
> )
>
> Does this make sense?
>