Skip to content

fix (RMS): REA iterate over a copy of the requests#8571

Open
chaen wants to merge 1 commit into
DIRACGrid:integrationfrom
chaen:v9.1_fix_rea_iter
Open

fix (RMS): REA iterate over a copy of the requests#8571
chaen wants to merge 1 commit into
DIRACGrid:integrationfrom
chaen:v9.1_fix_rea_iter

Conversation

@chaen
Copy link
Copy Markdown
Contributor

@chaen chaen commented Jun 3, 2026

We have had this stack trace the other day in the REA logs:

2026-05-28T15:09:04,088784Z RequestManagement/RequestExecutingAgent ERROR: Failed to execute finalize for Agent: RequestManagement/RequestExecutingAgent
Traceback (most recent call last):
  File "DIRAC/Core/Base/AgentReactor.py", line 129, in __finalize
    self.__agentModules[agentName]["instanceObj"].finalize()
  File "DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py", line 433, in finalize
    self.putAllRequests()
  File "DIRAC/RequestManagementSystem/Agent/RequestExecutingAgent.py", line 195, in putAllRequests
    for requestID in self.__requestCache.keys():
RuntimeError: dictionary changed size during iteration

BEGINRELEASENOTES

*RMS

FIX:REA iterate over a copy of the keys

ENDRELEASENOTES

@fstagni
Copy link
Copy Markdown
Contributor

fstagni commented Jun 4, 2026

Please rebase to get rid of the rtd error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants