From c90d1733156b2ed32891624721be4dba97b8f757 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Wed, 3 Jun 2026 14:47:56 +0200 Subject: [PATCH] fix (RMS): REA iterate over a copy of the requests to avoid modifying the dict --- .../RequestManagementSystem/Agent/RequestExecutingAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py b/src/DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py index 87618a6739b..749b899ed27 100644 --- a/src/DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py +++ b/src/DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py @@ -192,7 +192,7 @@ def putAllRequests(self): :param self: self reference """ self.log.info("putAllRequests: will put back requests", f"{len(self.__requestCache)}") - for requestID in self.__requestCache.keys(): + for requestID in list(self.__requestCache.keys()): reset = self.putRequest(requestID) if not reset["OK"]: self.log.error("Failed to put request", reset["Message"])