Skip to content

Commit

Permalink
* to reduce attempts for esmerge
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Dec 21, 2018
1 parent c2bc54f commit af50f73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Release Notes

* 12/21/2018
* to reduce attempts for esmerge

* 12/19/2018
* to change MCORE to SCORE for small ES jobs

Expand Down
15 changes: 14 additions & 1 deletion pandaserver/taskbuffer/OraDBProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15824,7 +15824,7 @@ def ppEventServiceJob(self,job,currentJobStatus,useCommit=True):
jobSpec.schedulerID = None
jobSpec.pilotID = None
if doMerging:
jobSpec.maxAttempt = jobSpec.attemptNr+3
jobSpec.maxAttempt = jobSpec.attemptNr
jobSpec.currentPriority = 5000
else:
jobSpec.currentPriority += 1
Expand Down Expand Up @@ -16021,6 +16021,10 @@ def ppEventServiceJob(self,job,currentJobStatus,useCommit=True):
sqlFile = "INSERT INTO ATLAS_PANDA.filesTable4 ({0}) ".format(FileSpec.columnNames())
sqlFile+= FileSpec.bindValuesExpression(useSeq=True)
sqlFile+= " RETURNING row_ID INTO :newRowID"
sqlMaxFail = "UPDATE {0}.JEDI_Dataset_Contents ".format(panda_config.schemaJEDI)
sqlMaxFail += "SET maxFailure=failedAttempt+:increase "
sqlMaxFail += "WHERE jediTaskID=:jediTaskID AND datasetID=:datasetID AND fileID=:fileID "
sqlMaxFail += "AND keepTrack=:keepTrack "
for fileSpec in jobSpec.Files:
# skip zip
if fileSpec.type.startswith('zip'):
Expand All @@ -16039,6 +16043,15 @@ def ppEventServiceJob(self,job,currentJobStatus,useCommit=True):
varMap[':newRowID'] = self.cur.var(varNUMBER)
self.cur.execute(sqlFile+comment, varMap)
fileSpec.row_ID = long(self.cur.getvalue(varMap[':newRowID']))
# change max failure for esmerge
if doMerging and fileSpec.type in ['input', 'pseudo_input']:
varMap = {}
varMap[':jediTaskID'] = fileSpec.jediTaskID
varMap[':datasetID'] = fileSpec.datasetID
varMap[':fileID'] = fileSpec.fileID
varMap[':increase'] = 5
varMap[':keepTrack'] = 1
self.cur.execute(sqlMaxFail+comment, varMap)
# insert job parameters
sqlJob = "INSERT INTO ATLAS_PANDA.jobParamsTable (PandaID,jobParameters) VALUES (:PandaID,:param)"
varMap = {}
Expand Down

0 comments on commit af50f73

Please sign in to comment.