Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1537a7

Browse files
Google APIscopybara-github
authored andcommitted
feat: support GPU zonal redundancy setting for Cloud Run jobs
feat: add new field `term_signal` to `.google.cloud.run.v2.TaskAttemptResult` PiperOrigin-RevId: 783503468
1 parent 68d5196 commit f1537a7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

google/cloud/run/v2/task.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,13 @@ message Task {
257257
// Output only. The node selector for the task.
258258
NodeSelector node_selector = 36 [(google.api.field_behavior) = OUTPUT_ONLY];
259259

260+
// Optional. Output only. True if GPU zonal redundancy is disabled on this
261+
// task.
262+
optional bool gpu_zonal_redundancy_disabled = 37 [
263+
(google.api.field_behavior) = OPTIONAL,
264+
(google.api.field_behavior) = OUTPUT_ONLY
265+
];
266+
260267
// Output only. A system-generated fingerprint for this version of the
261268
// resource. May be used to detect modification conflict during updates.
262269
string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -272,5 +279,13 @@ message TaskAttemptResult {
272279
// This may be unset if the container was unable to exit cleanly with a code
273280
// due to some other failure.
274281
// See status field for possible failure details.
282+
//
283+
// At most one of exit_code or term_signal will be set.
275284
int32 exit_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
285+
286+
// Output only. Termination signal of the container. This is set to non-zero
287+
// if the container is terminated by the system.
288+
//
289+
// At most one of exit_code or term_signal will be set.
290+
int32 term_signal = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
276291
}

google/cloud/run/v2/task_template.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,8 @@ message TaskTemplate {
7373

7474
// Optional. The node selector for the task template.
7575
NodeSelector node_selector = 11 [(google.api.field_behavior) = OPTIONAL];
76+
77+
// Optional. True if GPU zonal redundancy is disabled on this task template.
78+
optional bool gpu_zonal_redundancy_disabled = 12
79+
[(google.api.field_behavior) = OPTIONAL];
7680
}

0 commit comments

Comments
 (0)