Skip to content

Commit

Permalink
Merge pull request #7457 from aldbr/v8.0_FIX_JobAgent-JobReport
Browse files Browse the repository at this point in the history
[8.0] fix: `jobID` type discrepancies in JobAgent
  • Loading branch information
fstagni authored Feb 9, 2024
2 parents 38671ea + 65e2658 commit e00d2d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def execute(self):
# Check matcher information returned
matcherParams = ["JDL", "DN", "Group"]
matcherInfo = jobRequest["Value"]
jobID = matcherInfo["JobID"]
jobID = str(matcherInfo["JobID"])

self.jobs[jobID] = {}
self.jobs[jobID]["JobReport"] = JobReport(jobID, f"{self.__class__.__name__}@{self.siteName}")
Expand Down Expand Up @@ -253,7 +253,6 @@ def execute(self):
self.jobs[jobID]["JobReport"].setJobStatus(status=JobStatus.FAILED, minorStatus=result["Message"])
return self._finish(result["Value"], self.stopOnApplicationFailure)
submissionParams = result["Value"]
jobID = submissionParams["jobID"]
jobType = submissionParams["jobType"]

self.log.verbose("Job request successful: \n", jobRequest["Value"])
Expand Down

0 comments on commit e00d2d3

Please sign in to comment.