Skip to content

Commit

Permalink
Don't send additional input files list to server (#4679)
Browse files Browse the repository at this point in the history
  • Loading branch information
emaszs authored Mar 2, 2017
1 parent 803da6f commit 7502a55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/python/CRABClient/ClientMapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
'JobType.externalPluginFile'], 'type': 'StringType', 'required': False},
'generator' : {'default': 'pythia', 'config': ['JobType.generator'], 'type': 'StringType', 'required': False},
'eventsperlumi' : {'default': None, 'config': ['JobType.eventsPerLumi'], 'type': 'IntType', 'required': False},
'adduserfiles' : {'default': [], 'config': ['JobType.inputFiles'], 'type': 'ListType', 'required': False},
'addoutputfiles' : {'default': [], 'config': ['JobType.outputFiles'], 'type': 'ListType', 'required': False},
'maxjobruntime' : {'default': 1250, 'config': ['JobType.maxJobRuntimeMin'], 'type': 'IntType', 'required': False},
'numcores' : {'default': 1, 'config': ['JobType.numCores'], 'type': 'IntType', 'required': False},
Expand Down Expand Up @@ -70,7 +69,8 @@
{'default': False, 'config': ['JobType.sendPythonFolder'], 'type': 'BooleanType', 'required': False},
{'default': False, 'config': ['JobType.sendExternalFolder'], 'type': 'BooleanType', 'required': False},
{'default': None, 'config': ['JobType.pyCfgParams'], 'type': 'ListType', 'required': False},
{'default': False, 'config': ['JobType.disableAutomaticOutputCollection'],'type': 'BooleanType', 'required': False}
{'default': False, 'config': ['JobType.disableAutomaticOutputCollection'],'type': 'BooleanType', 'required': False},
{'default': [], 'config': ['JobType.inputFiles'], 'type': 'ListType', '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 @@ -116,7 +116,7 @@ def __call__(self):
self.logger.info("Sending the request to the server")
self.logger.debug("Submitting %s " % str(self.configreq))
## TODO: this shouldn't be hard-coded.
listParams = ['adduserfiles', 'addoutputfiles', 'sitewhitelist', 'siteblacklist', 'blockwhitelist', 'blockblacklist', \
listParams = ['addoutputfiles', 'sitewhitelist', 'siteblacklist', 'blockwhitelist', 'blockblacklist', \
'tfileoutfiles', 'edmoutfiles', 'runs', 'lumis', 'userfiles', 'scriptargs', 'extrajdl']
self.configreq_encoded = self._encodeRequest(self.configreq, listParams)
self.logger.debug('Encoded submit request: %s' % (self.configreq_encoded))
Expand Down
2 changes: 0 additions & 2 deletions src/python/CRABClient/JobType/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def run(self, filecacheurl = None):
Override run() for JobType
"""
configArguments = {'addoutputfiles' : [],
'adduserfiles' : [],
'tfileoutfiles' : [],
'edmoutfiles' : [],
}
Expand Down Expand Up @@ -147,7 +146,6 @@ def run(self, filecacheurl = None):
with UserTarball(name=tarFilename, logger=self.logger, config=self.config) as tb:
inputFiles = [re.sub(r'^file:', '', file) for file in getattr(self.config.JobType, 'inputFiles', [])]
tb.addFiles(userFiles=inputFiles, cfgOutputName=cfgOutputName)
configArguments['adduserfiles'] = [os.path.basename(f) for f in inputFiles]
try:
# convert from unicode to ascii to make it work with older pycurl versions
uploadResult = tb.upload(filecacheurl = filecacheurl.encode('ascii', 'ignore'))
Expand Down

0 comments on commit 7502a55

Please sign in to comment.