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

Re: [HTCondor-users] odd behavior of condor_qedit



In this case join, is better than strcat. 

EVALSET DESIRED_SITES = join("," , { DESIRED_SITES, "T3_US_FNALLPC" })

join, will ignore undefined values within the {} that is being joined,  so the above works properly
when DESIRED_SITES is undefined before the EVALSET.  

-tj


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Stefano Belforte via HTCondor-users <htcondor-users@xxxxxxxxxxx>
Sent: Wednesday, April 15, 2026 3:20 AM
To: Todd L Miller via HTCondor-users <htcondor-users@xxxxxxxxxxx>
Cc: Stefano Belforte <stefano.belforte@xxxxxxx>
Subject: Re: [HTCondor-users] odd behavior of condor_qedit

I believe that I have found the solution to this in JobRouter context.
Use EVALSET, not SET !

On 15/04/2026 01:52, Stefano Belforte wrote:
>
> how may I add an element to my list
> DESIRED_SITES = "T1_US_FNAL,T3_US_FNALLPC"
> ?

i.e.

I should not use:
SET DESIRED_SITES=strcat(DESIRED_SITES,",T2_US_MIT")
which replaces the DESIRED_SITES ad with a recursive _expression_,

but:
EVALSET DESIRED_SITES=strcat(DESIRED_SITES,",T2_US_MIT")
which evaluates the RHS to a string using current value of the ad
and then sets the ad to the new string

Thanks for your suggestions and patience !

Stefano


_______________________________________________
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/