[Core]Fix get workrer table bug (#11516)

* fix get_worker_table bug

* fix lint

* fix comment

* remove actor table

* fix comment

* fix get alive worker

* remove unused python import
This commit is contained in:
DK.Pino
2020-10-31 05:48:29 +08:00
committed by GitHub
parent 71c5089854
commit b10871a1f5
5 changed files with 20 additions and 1 deletions
+9
View File
@@ -876,6 +876,15 @@ def nodes():
return state.node_table()
def workers():
"""Get a list of the workers in the cluster.
Returns:
Information about the Ray workers in the cluster.
"""
return state.workers()
def current_node_id():
"""Return the node id of the current node.