69 if self.
mode ==
"server":
71 futures.ThreadPoolExecutor(max_workers=20),
73 (
"grpc.max_send_message_length", 200 * 1024 * 1024),
74 (
"grpc.max_receive_message_length", 200 * 1024 * 1024),
83 retry_wait_backoff_exponent = 1.2
85 while retries < max_retries:
86 added_port = server.add_insecure_port(
92 print(
"Server Running")
93 server.wait_for_termination()
100 "is already in use retrying! attempt: ",
104 time.sleep(wait_seconds)
105 wait_seconds *= retry_wait_backoff_exponent