Windows changes (#7315)

This commit is contained in:
mehrdadn
2020-02-27 15:14:10 -08:00
committed by GitHub
parent 0c9e5db9cb
commit 8730996682
5 changed files with 30 additions and 18 deletions
+5 -2
View File
@@ -6,7 +6,6 @@ import multiprocessing
import os
import random
import re
import resource
import socket
import subprocess
import sys
@@ -19,6 +18,10 @@ import ray
import ray.ray_constants as ray_constants
import psutil
resource = None
if sys.platform != "win32":
import resource
# True if processes are run in the valgrind profiler.
RUN_RAYLET_PROFILER = False
RUN_PLASMA_STORE_PROFILER = False
@@ -903,7 +906,7 @@ def _start_redis_instance(executable,
# number of Redis clients.
if redis_max_clients is not None:
redis_client.config_set("maxclients", str(redis_max_clients))
else:
elif resource is not None:
# If redis_max_clients is not provided, determine the current ulimit.
# We will use this to attempt to raise the maximum number of Redis
# clients.