mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 13:05:25 +08:00
[GCS] Move node resource info from client table to resource table (#5050)
This commit is contained in:
@@ -8,7 +8,6 @@ import time
|
||||
import redis
|
||||
|
||||
import ray
|
||||
from ray.gcs_utils import ClientTableData
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -176,8 +175,7 @@ class Cluster(object):
|
||||
while time.time() - start_time < timeout:
|
||||
clients = ray.state._parse_client_table(redis_client)
|
||||
live_clients = [
|
||||
client for client in clients
|
||||
if client["EntryType"] == ClientTableData.INSERTION
|
||||
client for client in clients if client["IsInsertion"]
|
||||
]
|
||||
|
||||
expected = len(self.list_all_nodes())
|
||||
|
||||
Reference in New Issue
Block a user