mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 05:33:57 +08:00
[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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user