Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Condor-users] SYSTEM_PERIODIC_HOLD hold help
- Date: Wed, 10 Mar 2010 20:24:48 -0500
- From: Mag Gam <magawake@xxxxxxxxx>
- Subject: [Condor-users] SYSTEM_PERIODIC_HOLD hold help
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?