mirror of
https://github.com/wassname/ray.git
synced 2026-07-25 13:30:52 +08:00
Move global state API out of global_state object. (#4857)
This commit is contained in:
committed by
Philipp Moritz
parent
ea8d7b4dc0
commit
6703519144
@@ -356,7 +356,7 @@ class RayTrialExecutor(TrialExecutor):
|
||||
def _update_avail_resources(self, num_retries=5):
|
||||
for i in range(num_retries):
|
||||
try:
|
||||
resources = ray.global_state.cluster_resources()
|
||||
resources = ray.cluster_resources()
|
||||
except Exception:
|
||||
# TODO(rliaw): Remove this when local mode is fixed.
|
||||
# https://github.com/ray-project/ray/issues/4147
|
||||
|
||||
Reference in New Issue
Block a user