[core/autoscaler] Restore use_gcs_for_bootstrap (#23413)

Certain external integrations rely on ray._private.use_gcs_for_bootstrap to determine if Ray is using the gcs to bootstrap. The current version of Ray always uses the gcs to bootstrap, so this should just return True.
This commit is contained in:
Dmitri Gekhtman 2022-03-23 03:39:23 -07:00 committed by GitHub
parent 9b1a3f9f9a
commit f91a134dc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,3 +244,12 @@ class GcsClient:
f"Failed to list prefix {prefix} "
f"due to error {reply.status.message}"
)
def use_gcs_for_bootstrap():
"""In the current version of Ray, we always use the GCS to bootstrap.
(This was previously controlled by a feature flag.)
This function is included for the purposes of backwards compatibility.
"""
return True