mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 16:17:07 +08:00
[CLI] Fix ray commands when RAY_ADDRESS used (#11989)
* [CLI] Fix ray commands when RAY_ADDRESS used * erics suggestion
This commit is contained in:
@@ -170,6 +170,10 @@ def find_redis_address(address=None):
|
||||
The --redis-address here is what is now called the --address, but it
|
||||
appears in the default_worker.py and agent.py calls as --redis-address.
|
||||
"""
|
||||
|
||||
if "RAY_ADDRESS" in os.environ:
|
||||
return os.environ["RAY_ADDRESS"]
|
||||
|
||||
pids = psutil.pids()
|
||||
redis_addresses = set()
|
||||
for pid in pids:
|
||||
|
||||
Reference in New Issue
Block a user