Fix ray memory command broken with RAY_ADDRESS='auto'. (#15892)

This commit is contained in:
SangBin Cho 2021-05-18 22:06:17 -07:00 committed by GitHub
parent 891648ea9e
commit 29e9ad01e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,9 @@ def memory_summary(address=None,
from ray.new_dashboard.memory_utils import memory_summary
if not address:
address = services.get_ray_address_to_use_or_die()
if address == "auto":
address = services.find_redis_address_or_die()
state = GlobalState()
state._initialize_global_state(address, redis_password)
if stats_only: