Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit e4965be

Browse files
authored
Merge pull request #54 from mnecas/fix_RuntimeError
fix: RuntimeError dictionary changed size during iteration
2 parents 3569765 + 1a41d19 commit e4965be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner_service/services/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_events(play_uuid, filter):
149149
# use cache if possible
150150
if play_uuid in event_cache:
151151
local_cache = event_cache.copy()
152-
events = local_cache[play_uuid].values()
152+
events = list(local_cache[play_uuid].values())
153153
logger.debug("Job events for play {}: {}".format(play_uuid,
154154
len(events) - 1))
155155
logger.debug("Active filter is :{}".format(filter))

0 commit comments

Comments
 (0)