From 2392b7d438a4bebce31586f4c2f9293681973867 Mon Sep 17 00:00:00 2001 From: aldbr Date: Fri, 9 Feb 2024 09:52:24 +0100 Subject: [PATCH] sweep: #7457 fix: `jobID` type discrepancies in JobAgent --- src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py index ff70d737f9c..c459d80c804 100755 --- a/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py @@ -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}") @@ -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"])