diff --git a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py index e0fb0d98005..c6ae71759dd 100755 --- a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py @@ -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}") @@ -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"])