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

Re: [Condor-users] Error evaluating rank



You might need to try this:

in case owner is undefined???

OWNERBOOST = Owner =?= "user1" || Owner =?= "user2" 

Just a wild stab in the dark, but it means OWNERBOOST will always
resolve to true or false, rather than true/false/undefined

Peter

Dr Peter Myerscough-Jackopson
Engineer, MAC Ltd

phone:+44 (0) 23 8076 7808 fax:+44 (0) 23 8076 0602
email:peter.myerscough-jackopson@xxxxxxxxxx  web:www.macltd.com

Multiple Access Communications Limited is a company registered in
England at Delta House, Southampton Science Park, Southampton,
SO16 7NS, United Kingdom with Company Number 1979185

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Bryan K. Wright
Sent: 23 October 2007 15:20
To: Condor-Users Mail List
Subject: [Condor-users] Error evaluating rank

Hi folks,

	I've been fiddling with the RANK expression in
condor_config.local, and I find that I'm getting errors of the form
"Error evaluating rank"
in StartLog when I use lines like the following:

OWNERBOOST = Owner == "user1" || Owner == "user2"
RANK = 10*( 2*OWNERBOOST - 1 ) - LoadAvg + 20

What's wrong with this syntax?  Also, is there any command-line tool for
checking the syntax of condor_config files?  (Like samba's
testparm.)

						Bryan

--
========================================================================
Bryan Wright              |"If you take cranberries and stew them like 
Physics Department        | applesauce, they taste much more like prunes
University of Virginia    | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901|			
(434) 924-7218            |         bryan@xxxxxxxxxxxx
========================================================================


_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with
a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at: 
https://lists.cs.wisc.edu/archive/condor-users/