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

Re: [HTCondor-users] odd behavior of condor_qedit



So here I reproduce the problem which I have with JobRouter
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -af desired_sites
T1_US_FNAL,T3_US_FNALLPC
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_qedit 1641601.0 desired_sites='strcat(DESIRED_SITES,"T2_US_MIT")'
Set attribute "desired_sites" for 1 matching jobs.
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -af desired_sites

[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -l |grep -i "desired_sites ="
DESIRED_SITES = strcat(DESIRED_SITES,"T2_US_MIT")
[crabtw@vocms069 cluster1641599.proc0.subproc0]$

Maybe I can't have the same classAd on the left and right side of strcat ?

This sort of works
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -af desired_sites
T1_US_FNAL,T3_US_FNALLPC
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_qedit 1641601.0 temp='strcat(DESIRED_SITES,"T2_US_MIT")'
Set attribute "temp" for 1 matching jobs.
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -af temp

T1_US_FNAL,T3_US_FNALLPCT2_US_MIT

Even if "under the hood" the strcat was not resolved
]$ condor_q 1641601.0 -l |grep -i "temp ="
temp = strcat(DESIRED_SITES,",T2_US_MIT")


But when I try
condor_qedit 1641601.0 desired_sites=temp

I get
[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -l |grep -i "desired_sites ="
DESIRED_SITES = temp

[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -format '<%s>\n' desired_sites
<undefined>

[crabtw@vocms069 cluster1641599.proc0.subproc0]$ condor_q 1641601.0 -af desired_sites

[crabtw@vocms069 cluster1641599.proc0.subproc0]$


Maybe the fact that DESIRED_SITES is a comma-separated list matters ?


how may I add an element to my list
DESIRED_SITES = "T1_US_FNAL,T3_US_FNALLPC"
?
MY problem is that the list may be different for various jobs which match the
constraint, and I just want to add a site to all of them, so I can't simply
type in a new site list. I could do in a script around condor_qedit, but I
need to use JobRouter to avoid killing the schedd with too large a condor_qedit.

Stefano