def test_remote_pod(self): f_args = set_gateway_parser().parse_args(['--allow-spawn']) p_args = set_pod_parser().parse_args( ['--host', 'localhost', '--replicas', '3', '--port-grpc', str(f_args.port_grpc)]) def start_gateway(): with GatewayPod(f_args): time.sleep(5) t = Process(target=start_gateway) t.daemon = True t.start() PodSpawnHelper(p_args).start() t.join()
def start_spawn(): PodSpawnHelper(p_args).start()