Skip to content

Commit

Permalink
fix: jobID type discrepancies in JobAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Feb 9, 2024
1 parent 38671ea commit 65e2658
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 65e2658

Please sign in to comment.