From 628421261b4dada52f55b6e4342cb87df5aa7a2f Mon Sep 17 00:00:00 2001 From: Vladimir Date: Wed, 3 Apr 2024 23:06:24 +0200 Subject: [PATCH] fix: looking for int index in list of str 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 75129180c66..7268a691c0c 100644 --- a/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/JobCleaningAgent.py @@ -230,7 +230,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()