Skip to content

Instantly share code, notes, and snippets.

@architkulkarni
Created May 9, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save architkulkarni/1b733995f4b7e1182119f2ecf8f08dce to your computer and use it in GitHub Desktop.
Save architkulkarni/1b733995f4b7e1182119f2ecf8f08dce to your computer and use it in GitHub Desktop.
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