Skip to content

Commit

Permalink
[core] Fix error for connecting to existing cluster from OSX/Windows …
Browse files Browse the repository at this point in the history
…driver (#32646)

Removes an unnecessary check when connecting to the cluster. See #32640.
  • Loading branch information
stephanie-wang authored Feb 21, 2023
1 parent bab9752 commit 7774cc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/ray/_private/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,11 +1358,6 @@ def init(
if bootstrap_address is not None:
gcs_address = bootstrap_address
logger.info("Connecting to existing Ray cluster at address: %s...", gcs_address)
if not ray_constants.env_set_by_user(ray_constants.ENABLE_RAY_CLUSTERS_ENV_VAR):
# If the cluster already exists, then assume it's safe to connect
# to the cluster even if we're on Windows or OSX (unless the user
# explicitly set the flag).
ray_constants.ENABLE_RAY_CLUSTER = True

# NOTE(swang): We must set the node IP address *after* we determine whether
# this is an existing cluster or not. For Windows and OSX, the resolved IP
Expand Down

0 comments on commit 7774cc3

Please sign in to comment.