From e958d261b6c3d63031c73912c8519692be6375a4 Mon Sep 17 00:00:00 2001 From: Ujval Misra Date: Wed, 27 May 2020 17:55:08 -0700 Subject: [PATCH] Fix ray.available_resources bug (#8537) --- python/ray/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/state.py b/python/ray/state.py index 70538f811..7fb48193f 100644 --- a/python/ray/state.py +++ b/python/ray/state.py @@ -796,7 +796,7 @@ class GlobalState: client_ids = self._live_client_ids() # Remove disconnected clients - for client_id in available_resources_by_id.keys(): + for client_id in list(available_resources_by_id.keys()): if client_id not in client_ids: del available_resources_by_id[client_id]