diff --git a/python/ray/util/client/common.py b/python/ray/util/client/common.py index 66825dc2fee1..69707b6c7c22 100644 --- a/python/ray/util/client/common.py +++ b/python/ray/util/client/common.py @@ -14,6 +14,7 @@ import ray._raylet as raylet import ray.core.generated.ray_client_pb2 as ray_client_pb2 import ray.core.generated.ray_client_pb2_grpc as ray_client_pb2_grpc +from ray._private import ray_constants from ray._private.inspect_util import ( is_class_method, is_cython, @@ -65,6 +66,7 @@ GRPC_KEEPALIVE_TIMEOUT_MS = 1000 * 600 GRPC_OPTIONS = [ + *ray_constants.GLOBAL_GRPC_OPTIONS, ("grpc.max_send_message_length", GRPC_MAX_MESSAGE_SIZE), ("grpc.max_receive_message_length", GRPC_MAX_MESSAGE_SIZE), ("grpc.keepalive_time_ms", GRPC_KEEPALIVE_TIME_MS),