Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Bug with TotalJobSuspendTime?
- Date: Thu, 19 Jan 2006 14:46:44 -0600
- From: Zachary Miller <zmiller@xxxxxxxxxxx>
- Subject: Re: [Condor-users] Bug with TotalJobSuspendTime?
On Thu, Jan 19, 2006 at 11:05:22AM -0800, Finch, Ralph wrote:
> condor -version
> $CondorVersion: 6.7.13 Nov 7 2005 $
> $CondorPlatform: INTEL-WINNT50 $
okay.
> So then I tried this line:
>
> && (TotalJobSuspendTime =!= UNDEFINED) && (TotalJobSuspendTime <=
> $(MaxSuspendTime))
i think you just need to put another set of parenthesis around the test and use
of the UNDEFINED value, like this:
((TotalJobSuspendTime =!= UNDEFINED) && (TotalJobSuspendTime <= $(MaxSuspendTime)))
condor doesn't short-circuit the boolean evaluation, so it was still evaluating
the undefined attribute and getting ERROR. the reason it works with the extra
parenthesis then is that:
(FALSE && ERROR) == FALSE
i.e. the ERROR is squashed.
also, this actually changed in 6.7.14, and condor does short-circuit boolean
evaluation.
cheers,
-zach