Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Change submit parameter configuration knob with python bindings
- Date: Fri, 26 Jun 2020 15:47:46 -0400
- From: Kenyi Hurtado Anampa <khurtado@xxxxxx>
- Subject: [HTCondor-users] Change submit parameter configuration knob with python bindings
Hi,
I would like to change the following parameter that defaults to True:
SUBMIT_GENERATE_CUSTOM_RESOURCE_REQUIREMENTS = False
via python bindings, using HTCondor 8.9.7. htcondor.param should allow
for that, but it seems it only supports string values. Is this
correct? Is there any other way for setting this parameter?
>>> import htcondor
>>> htcondor.param.get("SUBMIT_GENERATE_CUSTOM_RESOURCE_REQUIREMENTS")
True
>>>
type(htcondor.param.get("SUBMIT_GENERATE_CUSTOM_RESOURCE_REQUIREMENTS"))
<type 'bool'>
>>>
htcondor.param.setdefault("SUBMIT_GENERATE_CUSTOM_RESOURCE_REQUIREMENTS", False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/htcondor/_lock.py", line
75, in wrapper
rv = func(*args, **kwargs)
Boost.Python.ArgumentError: Python argument types in
_Param.setdefault(_Param, str, bool)
did not match C++ signature:
setdefault(Param {lvalue}, std::string, std::string)
>>> htcondor.param["SUBMIT_GENERATE_CUSTOM_RESOURCE_REQUIREMENTS"] = False
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/htcondor/_lock.py", line
75, in wrapper
rv = func(*args, **kwargs)
Boost.Python.ArgumentError: Python argument types in
_Param.__setitem__(_Param, str, bool)
did not match C++ signature:
__setitem__(Param {lvalue}, std::string, std::string)
Best regards,
Kenyi