Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ray / tune / execution / cluster_info.py
Size: Mime:
from functools import lru_cache
from pathlib import Path


@lru_cache()
def _is_ray_cluster():
    """Checks if the bootstrap config file exists.

    This will always exist if using an autoscaling cluster/started
    with the ray cluster launcher.
    """
    return Path("~/ray_bootstrap_config.yaml").expanduser().exists()