File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 " from coordinode import CoordinodeClient\n " ,
7676 " \n " ,
7777 " client = CoordinodeClient(COORDINODE_ADDR)\n " ,
78- " client.health()\n " ,
78+ " if not client.health():\n " ,
79+ " client.close()\n " ,
80+ " raise RuntimeError(f\" CoordiNode at {COORDINODE_ADDR} is not serving health checks\" )\n " ,
7981 " print(f\" Connected to {COORDINODE_ADDR}\" )\n " ,
8082 " elif _port_open(GRPC_PORT):\n " ,
8183 " COORDINODE_ADDR = f\" localhost:{GRPC_PORT}\"\n " ,
8284 " from coordinode import CoordinodeClient\n " ,
8385 " \n " ,
8486 " client = CoordinodeClient(COORDINODE_ADDR)\n " ,
85- " client.health()\n " ,
87+ " if not client.health():\n " ,
88+ " client.close()\n " ,
89+ " raise RuntimeError(f\" CoordiNode at {COORDINODE_ADDR} is not serving health checks\" )\n " ,
8690 " print(f\" Connected to {COORDINODE_ADDR}\" )\n " ,
8791 " else:\n " ,
8892 " # No server available — use the embedded in-process engine.\n " ,
You can’t perform that action at this time.
0 commit comments