Skip to content

Commit 65e2658

Browse files
committed
fix: jobID type discrepancies in JobAgent
1 parent 38671ea commit 65e2658

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def execute(self):
213213
# Check matcher information returned
214214
matcherParams = ["JDL", "DN", "Group"]
215215
matcherInfo = jobRequest["Value"]
216-
jobID = matcherInfo["JobID"]
216+
jobID = str(matcherInfo["JobID"])
217217

218218
self.jobs[jobID] = {}
219219
self.jobs[jobID]["JobReport"] = JobReport(jobID, f"{self.__class__.__name__}@{self.siteName}")
@@ -253,7 +253,6 @@ def execute(self):
253253
self.jobs[jobID]["JobReport"].setJobStatus(status=JobStatus.FAILED, minorStatus=result["Message"])
254254
return self._finish(result["Value"], self.stopOnApplicationFailure)
255255
submissionParams = result["Value"]
256-
jobID = submissionParams["jobID"]
257256
jobType = submissionParams["jobType"]
258257

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

0 commit comments

Comments
 (0)