Skip to content

Commit

Permalink
Site.requireAccelerator (#5174)
Browse files Browse the repository at this point in the history
* add requireAccelerator

* indent

Co-authored-by: Thanayut Seethongchuen <thanayut.seethongchuen@cern>
  • Loading branch information
novicecpp and Thanayut Seethongchuen authored Oct 14, 2022
1 parent 7248a05 commit 8b8f2a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/python/CRABClient/ClientMapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'asyncdest' : {'default': None, 'config': ['Site.storageSite'], 'type': 'StringType', 'required': False},
'sitewhitelist' : {'default': None, 'config': ['Site.whitelist'], 'type': 'ListType', 'required': False},
'siteblacklist' : {'default': None, 'config': ['Site.blacklist'], 'type': 'ListType', 'required': False},
'requireaccelerator' : {'default': False, 'config': ['Site.requireAccelerator'], 'type': 'BooleanType', 'required': False},
'vorole' : {'default': None, 'config': ['User.voRole'], 'type': 'StringType', 'required': False},
'vogroup' : {'default': None, 'config': ['User.voGroup'], 'type': 'StringType', 'required': False},
'oneEventMode' : {'default': False, 'config': ['Debug.oneEventMode'], 'type': 'BooleanType', 'required': False},
Expand Down
2 changes: 1 addition & 1 deletion src/python/CRABClient/Commands/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __call__(self):
## Translate boolean flags into integers.
elif param in ['savelogsflag', 'publication', 'nonprodsw', 'useparent',\
'ignorelocality', 'saveoutput', 'oneEventMode', 'nonvaliddata', 'ignoreglobalblacklist',\
'partialdataset']:
'partialdataset', 'requireaccelerator']:
self.configreq[param] = 1 if temp else 0
## Translate DBS URL aliases into DBS URLs.
elif param in ['dbsurl', 'publishdbsurl']:
Expand Down

0 comments on commit 8b8f2a2

Please sign in to comment.