You are using stringListMember correct. It works for me. When I configure APPEND_REQUIREMENTS like this APPEND_REQUIREMENTS = stringListMember(TARGET.Arch, "X86_64, ppc64le") I Get this for requirements. -- from the job classad--- Requirements=(stringListMember(TARGET.Arch,"X86_64, ppc64le")) && (TARGET.OpSys == "LINUX") && (TARGET.Disk >= RequestDisk) && (TARGET.Memory >= RequestMemory) && ((TARGET.FileSystemDomain == MY.FileSystemDomain) || (TARGET.HasFileTransfer)) Or if I donât use APPEND_REQUIREMENTS, but instead set requirements in the submit file like this requirements = stringListMember(TARGET.Arch, "X86_64, ppc64le")
I get this same resulting Requirements attribute in the job classad. -tj From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx>
On Behalf Of Kenyi Hurtado Anampa Hello, $ condor_config_val -dump | grep APPEND_REQUIREMENTS APPEND_REQUIREMENTS =
However, the schedd still adds its own. TARGET.Arch classad Submitting job(s)ERROR: Parse error in _expression_: Requirements = ((stringListMember(TARGET.Arch, "X86_64, ppc64le") && (TARGET.OpSys == "LINUX") && (TARGET.Disk >= RequestDisk) && (TARGET.Memory
>= RequestMemory) && (TARGET.Cpus >= RequestCpus) && (TARGET.HasFileTransfer)) && (TARGET.Arch == "X86_64") && (TARGET.OpSys == "LINUX") && (TARGET.Disk >= RequestDisk) && (TARGET.Memory >= RequestMemory) && ((TARGET.FileSystemDomain == MY.FileSystemDomain)
|| (TARGET.HasFileTransfer)) If I use this instead: Requirements = (TARGET.Arch == "X86_64" || TARGET.Arch == "ppc64le") && (TARGET.OpSys == "LINUX") && (TARGET.Disk >= RequestDisk) && (TARGET.Memory >= RequestMemory) && (TARGET.Cpus >= RequestCpus)
&& (TARGET.HasFileTransfer) It works though. But stringListMember() is honestly simpler and cleaner. Am I invoking stringListMember wrong? Is there an easy fix to that submit syntax? Best regards, Kenyi |