Created
May 9, 2021 16:04
-
-
Save architkulkarni/1b733995f4b7e1182119f2ecf8f08dce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/python/ray/serve/api.py b/python/ray/serve/api.py | |
index 2d08bc9db..3d7ef80d5 100644 | |
--- a/python/ray/serve/api.py | |
+++ b/python/ray/serve/api.py | |
@@ -3,6 +3,7 @@ import atexit | |
import collections | |
import inspect | |
import os | |
+import sys | |
import time | |
from dataclasses import dataclass | |
from functools import wraps | |
@@ -371,7 +372,7 @@ class Client: | |
# If using Ray client, skip this convenience feature because the local | |
# client env doesn't create the Ray cluster (so the client env is | |
# likely not present on the cluster.) | |
- if not ray.util.client.ray.is_connected(): | |
+ if not ray.util.client.ray.is_connected() or sys.platform != "win32": | |
if ray_actor_options.get("runtime_env") is None: | |
ray_actor_options["runtime_env"] = {} | |
if ray_actor_options["runtime_env"].get("conda") is None: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment