@@ -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