mirror of
https://github.com/vale981/ray
synced 2025-03-10 05:16:49 -04:00
10 lines
287 B
Python
10 lines
287 B
Python
![]() |
import os
|
||
|
|
||
|
|
||
|
def is_anyscale_connect():
|
||
|
"""Returns whether or not the Ray Address points to an Anyscale cluster."""
|
||
|
address = os.environ.get("RAY_ADDRESS")
|
||
|
is_anyscale_connect = address is not None and address.startswith(
|
||
|
"anyscale://")
|
||
|
return is_anyscale_connect
|