Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] JobTransform query
- Date: Tue, 21 Feb 2023 11:05:05 -0600 (CST)
- From: Todd L Miller <tlmiller@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] JobTransform query
Parse_config if error: 'HighPrioAcctGroup == "group_HIGHPRIO" is not a
valid if condition because complex conditionals are not supported'
It's maybe a little uglier than you'd like, but I'm pretty sure
something like:
EVALSET RalAcctGroup IfThenElse( HighPrioAcctGroup == "group_HIGHPRIO", \
HighPrioAcctGroup, \
usermap("VOAcctGroupMap",x509UserProxyVOName) )
will work. If you'd prefer, you could probably instead split the
AssignGroup transform into two halves. Something like:
JOB_TRANSFORM AssignHighPrioGroup @=end
REQUIREMENTS usermap("HighPrioAccountMap",Owner) == "group_HIGHPRIO"
IF defined MY.x509UserProxyVOName
SET HighPrioAcctGroup "group_HIGHPRIO"
ENDIF
@end
JOB_TRANSFORM_AssignRalAcctGroup @=end
REQUIREMENTS usermap("HighPrioAccountMap",Owner) != "group_HIGHPRIO"
IF defined MY.x509UserProxyVOName
EVALSET RalAcctGroup usermap("VOAcctGroupMap",x509UserProxyVOName)
ENDIF
@end
- ToddM