Skip to content

Commit fee4e43

Browse files
Google APIscopybara-github
authored andcommitted
docs: Documentation improvements
PiperOrigin-RevId: 640429278
1 parent 52d9a5c commit fee4e43

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

google/cloud/batch/v1/job.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,9 @@ message AllocationPolicy {
419419
string instance_template = 2;
420420
}
421421

422-
// Set this field true if users want Batch to help fetch drivers from a
423-
// third party location and install them for GPUs specified in
424-
// policy.accelerators or instance_template on their behalf. Default is
422+
// Set this field true if you want Batch to help fetch drivers from a third
423+
// party location and install them for GPUs specified in
424+
// `policy.accelerators` or `instance_template` on your behalf. Default is
425425
// false.
426426
//
427427
// For Container-Optimized Image cases, Batch will install the

google/cloud/batch/v1/task.proto

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,11 @@ message TaskExecution {
108108
// due to the following reasons, the exit code will be 50000.
109109
//
110110
// Otherwise, it can be from different sources:
111-
// - Batch known failures as
111+
// * Batch known failures:
112112
// https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
113-
// - Batch runnable execution failures: You can rely on Batch logs for further
114-
// diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs.
115-
// If there are multiple runnables failures, Batch only exposes the first
116-
// error caught for now.
113+
// * Batch runnable execution failures; you can rely on Batch logs to further
114+
// diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
115+
// there are multiple runnables failures, Batch only exposes the first error.
117116
int32 exit_code = 1;
118117
}
119118

@@ -341,10 +340,15 @@ message TaskSpec {
341340
// ComputeResource requirements.
342341
ComputeResource compute_resource = 3;
343342

344-
// Maximum duration the task should run.
345-
// The task will be killed and marked as FAILED if over this limit.
346-
// The valid value range for max_run_duration in seconds is [0,
347-
// 315576000000.999999999],
343+
// Maximum duration the task should run before being automatically retried
344+
// (if enabled) or automatically failed. Format the value of this field
345+
// as a time limit in seconds followed by `s`—for example, `3600s`
346+
// for 1 hour. The field accepts any value between 0 and the maximum listed
347+
// for the `Duration` field type at
348+
// https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
349+
// the actual maximum run time for a job will be limited to the maximum run
350+
// time for a job listed at
351+
// https://cloud.google.com/batch/quotas#max-job-duration.
348352
google.protobuf.Duration max_run_duration = 4;
349353

350354
// Maximum number of retries on failures.

0 commit comments

Comments
 (0)