mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05: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:
parent
d87af0da88
commit
d23d326560
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue