def grpc_prediction_server(): server = seldon_microservice.get_grpc_server( user_object, debug=DEBUG, annotations=annotations) server.add_insecure_port("0.0.0.0:{}".format(port)) server.start() logger.info("GRPC microservice Running on port %i", port) while True: time.sleep(1000)
def grpc_prediction_server(): if args.tracing: from grpc_opentracing import open_tracing_server_interceptor logger.info("Adding tracer") interceptor = open_tracing_server_interceptor(tracer) else: interceptor = None server = seldon_microservice.get_grpc_server( user_object, debug=DEBUG, annotations=annotations, trace_interceptor=interceptor) server.add_insecure_port("0.0.0.0:{}".format(port)) server.start() logger.info("GRPC microservice Running on port %i",port) while True: time.sleep(1000)
def test_get_grpc_server(): user_object = UserObject(ret_nparray=True) server = get_grpc_server(user_object)