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

Re: [HTCondor-users] Even more job transform questions



On 2/7/2025 2:42 AM, Jeff Templon wrote:
My rule (itâs under construction, hence all the duplication - Iâm trying to figure out what is going on):

if !$(IsClusterAd)
    EVALMACRO CLCoreEquiv max({ MY.RequestCpus, int(1 + MY.RequestMemory / 4097) })
    EVALSET CLUserStr   join(":", Owner, $(CLCoreEquiv))
    QUEUE_CONDITION = (JobCategory == "medium") || (JobCategory == "long")
    if $(QUEUE_CONDITION)
        [ â ]

Whereupon the âniceâ debugging tool says:

Invalid rules file clim.rule : $(QUEUE_CONDITION) is not a valid if condition because complex conditionals are not supported

When I change that the âif $EVAL(QUEUE_CONDITION)â,

Invalid rules file clim.rule : $EVAL(QUEUE_CONDITION) is not a valid if condition because _expression_ is not a conditional

Help appreciated.

Hi Jeff,

I am currently away from my laptop and cannot test my guess with the "condor_transform_ads" tool (handy to quickly debug and try out these rules), but my guess is try changing this line:
 
QUEUE_CONDITION = (JobCategory == "medium") || (JobCategory == "long")
if $(QUEUE_CONDITION)

to instead be
 
EVALMACRO QUEUE_CONDITION   (JobCategory == "medium") || (JobCategory == "long")
if $(QUEUE_CONDITION)

Note the addition of "EVALMACRO" at the start of the line.

Hope this helps, and hope I guessed correctly!

regards,
Todd

  

JT


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe

The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/


-- 
Todd Tannenbaum <tannenba@xxxxxxxxxxx>  University of Wisconsin-Madison
Center for High Throughput Computing    Department of Computer Sciences
Calendar: https://tinyurl.com/yd55mtgd  1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                   Madison, WI 53706-1685