Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7458 from DIRACGridBot/cherry-pick-2-e00…
Browse files Browse the repository at this point in the history
…d2d3db-integration

[sweep:integration] fix: `jobID` type discrepancies in JobAgent
  • Loading branch information
chrisburr authored Feb 9, 2024
2 parents e5732cd + 2392b7d commit 549e73f
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 @@ -209,7 +209,7 @@ def execute(self):
# Check matcher information returned
matcherParams = ["JDL", "Owner", "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 @@ -249,7 +249,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 549e73f

Please sign in to comment.