mirror of
https://github.com/wassname/ray.git
synced 2026-08-06 13:31:10 +08:00
[Dashboard] Optimize dashboard datacenter (#11391)
* Optimize dashboard datacenter * Fix tests * Fix tests * Fix * Fix CI * python/build-wheel-macos.sh Co-authored-by: 刘宝 <po.lb@antfin.com> Co-authored-by: Max Fitton <maxfitton@anyscale.com>
This commit is contained in:
co-authored by
刘宝
Max Fitton
parent
55a090fb16
commit
05ad4c7499
@@ -8,6 +8,7 @@ import pytest
|
||||
|
||||
import ray
|
||||
import ray.test_utils
|
||||
from ray.core.generated import common_pb2
|
||||
from ray.core.generated import node_manager_pb2, node_manager_pb2_grpc
|
||||
from ray.test_utils import (wait_for_condition, wait_for_pid_to_exit,
|
||||
run_string_as_driver,
|
||||
@@ -22,8 +23,8 @@ def get_workers():
|
||||
stub = node_manager_pb2_grpc.NodeManagerServiceStub(channel)
|
||||
return [
|
||||
worker for worker in stub.GetNodeStats(
|
||||
node_manager_pb2.GetNodeStatsRequest()).workers_stats
|
||||
if not worker.is_driver
|
||||
node_manager_pb2.GetNodeStatsRequest()).core_workers_stats
|
||||
if worker.worker_type != common_pb2.DRIVER
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user