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

Re: [HTCondor-users] [External] Re: Substitution of "+" for "MY." in submit file



Great, thanks very much.

Cheers,

Matt

On 24/03/2022 14:26, John M Knoeller wrote:

*This email originated outside the University. Check before clicking links or attachments.*

Yes, this is intended.

The + isnât part of the attribute name because it canât be used as part of a key in the Submit hash or in a classad. It is treated as a shorthand for MY. Âby both condor_submit and the python bindings.

If you prefer, you can just use MY. Âin your submit files and python Submit objects rather than +

-tj

*From:* HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> *On Behalf Of *Matthew Pitkin
*Sent:* Thursday, March 24, 2022 9:16 AM
*To:* htcondor-users@xxxxxxxxxxx
*Subject:* [HTCondor-users] Substitution of "+" for "MY." in submit file

Hi,

I've created a submit file using the Python HTCondor binding for which some of the options start with a plus, e.g., "+SuccessCheckpointExitCode = 77", but when that gets created (during write out a dag), the "+" has been replaced by "MY." (presumable by this line https://github.com/htcondor/htcondor/blob/master/src/condor_submit.V6/submit.cpp#L860 <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhtcondor%2Fhtcondor%2Fblob%2Fmaster%2Fsrc%2Fcondor_submit.V6%2Fsubmit.cpp%23L860&data=04%7C01%7Cpitkin%40live.lancs.ac.uk%7C1267e770504b4418774608da0da2bc45%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637837289846542624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Jac9Zuks5af2DMtusSSU5HsUMNIYWY39sCU0AGpNxVw%3D&reserved=0>). I just wanted to check whether this is ok? Is the "MY." equivalent to the "+"?

Any example reproducing this is:

from htcondor import Submit
from htcondor import dags

options = {
ÂÂÂ "universe": "vanilla",
ÂÂÂ "executable": "/usr/bin/mycode",
ÂÂÂ "+SuccessCheckpointExitCode": 77,
}

dag = dags.DAG()

dag.layer(
ÂÂÂ name="layer1",
ÂÂÂ submit_description=Submit(options),
)

dags.write_dag(dag, ".")

for which the layer1.sub file contains:

universe = vanilla
executable = /usr/bin/mycode
MY.SuccessCheckpointExitCode = 77

queue

Cheers,

Matt


--
-----------------------------------------------------------
Matthew Pitkin
Department of Physics
Lancaster University
Lancaster, LA1 4YB
tel. no.: 01524 510214
e-mail:m.pitkin@xxxxxxxxxxxxxxx
https://ma.ttpitk.in  <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fma.ttpitk.in%2F&data=04%7C01%7Cpitkin%40live.lancs.ac.uk%7C1267e770504b4418774608da0da2bc45%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637837289846542624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=UVh5ifHuaEn0UjETy2140vE0%2FTwqOLN4FDRvNvAYNA8%3D&reserved=0>
http://www.theonlinemcmc.com  <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.theonlinemcmc.com%2F&data=04%7C01%7Cpitkin%40live.lancs.ac.uk%7C1267e770504b4418774608da0da2bc45%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637837289846542624%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rjJxEG1W9z8JEXjBMOz4UbOqeX32%2BGaOJrH9Aech%2B20%3D&reserved=0>
pronouns: he/him/his
-----------------------------------------------------------

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

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

--
-----------------------------------------------------------
Matthew Pitkin
Department of Physics
Lancaster University
Lancaster, LA1 4YB

tel. no.: 01524 510214
e-mail: m.pitkin@xxxxxxxxxxxxxxx
https://ma.ttpitk.in
http://www.theonlinemcmc.com
pronouns: he/him/his
-----------------------------------------------------------