From bbdb9601dc467a762e9d496a9b0f45d7ad59bbf9 Mon Sep 17 00:00:00 2001 From: VladimirRomanovsky Date: Thu, 4 Apr 2024 09:44:17 +0200 Subject: [PATCH] sweep: #7550 fix: type issue in JobCleaningAgent; --- src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py b/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py index 948db5c66f8..28631f4a7fa 100644 --- a/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py @@ -211,7 +211,7 @@ def deleteJobsByStatus(self, condDict, delay=False): failedJobs = result["Value"][JobStatus.FAILED] for job in failedJobs: - jobList.pop(jobList.index(job)) + jobList.pop(jobList.index(str(job))) if not jobList: return S_OK()