Skip to content

Commit

Permalink
Populate WMCMSSWSubprocess section for failed jobs too
Browse files Browse the repository at this point in the history
apply Darios changes
  • Loading branch information
amaltaro committed Jan 7, 2025
1 parent f44dd28 commit a5ce72c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/python/WMCore/WMSpec/Steps/Executors/CMSSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ def execute(self, emulator=None):
envOverride['PYTHONPATH'] = pythonPath
os.environ.update(envOverride)

try:
# Update the job report with the relevant WMCMSSWSubprocess metrics
self.report.updateSubprocessInfo(sysTime, userTime, startTime, endTime)
except Exception as ex:
logging.error("Error updating job report with WMCMSSWSubprocess metrics: %s", str(ex))

if returnCode != 0:
argsDump = {'arguments': args}
msg = "Error running cmsRun\n%s\n" % argsDump
Expand All @@ -322,9 +328,6 @@ def execute(self, emulator=None):
self._setStatus(returnCode, returnMessage)

try:
# update FJR report info with subprocess info
self.report.updateSubprocessInfo(sysTime, userTime, startTime, endTime)

# parse job report XML
self.report.parse(jobReportXML, stepName=self.stepName)
except Exception as ex:
Expand Down

0 comments on commit a5ce72c

Please sign in to comment.