diff --git a/src/DIRAC/WorkloadManagementSystem/Service/JobStateUpdateHandler.py b/src/DIRAC/WorkloadManagementSystem/Service/JobStateUpdateHandler.py index 5c621b50338..156389a985a 100755 --- a/src/DIRAC/WorkloadManagementSystem/Service/JobStateUpdateHandler.py +++ b/src/DIRAC/WorkloadManagementSystem/Service/JobStateUpdateHandler.py @@ -68,7 +68,7 @@ def export_updateJobFromStager(cls, jobID, status): infoStr = None trials = 10 for i in range(trials): - result = cls.jobDB.getJobAttributes(jobID, ["Status"]) + result = cls.jobDB.getJobAttributes(int(jobID), ["Status"]) if not result["OK"]: return result if not result["Value"]: