Skip to content

Commit 39878ef

Browse files
Added comment how to add --reservation flag
1 parent 1ea1673 commit 39878ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tpu/src/main/java/tpu/CreateQueuedResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public static void createQueuedResource(String projectId, String zone,
5757
throws IOException, ExecutionException, InterruptedException {
5858
try (TpuClient tpuClient = TpuClient.create()) {
5959
String parent = String.format("projects/%s/locations/%s", projectId, zone);
60-
6160
Node node =
6261
Node.newBuilder()
6362
.setName(nodeName)
@@ -82,7 +81,8 @@ public static void createQueuedResource(String projectId, String zone,
8281
.build())
8382
.build())
8483
// You can request a queued resource using a reservation by specifying it in code
85-
//.setReservationName("projects/YOUR_PROJECT_ID/locations/YOUR_ZONE/reservations/YOUR_RESERVATION_NAME")
84+
//.setReservationName(
85+
// "projects/YOUR_PROJECT_ID/locations/YOUR_ZONE/reservations/YOUR_RESERVATION_NAME")
8686
.build();
8787

8888
CreateQueuedResourceRequest request =

0 commit comments

Comments
 (0)