Skip to content

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

Merged
fstagni merged 1 commit into
DIRACGrid:integrationfrom
chaen:v9.1_fix_rea_iter
Jun 4, 2026
Merged

fix (RMS): REA iterate over a copy of the requests#8571
fstagni merged 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.

@fstagni fstagni force-pushed the v9.1_fix_rea_iter branch from 5bff237 to c90d173 Compare June 4, 2026 14:19
@fstagni fstagni merged commit 3b11679 into DIRACGrid:integration Jun 4, 2026
23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants