Skip to content

Commit d9fe642

Browse files
Google APIscopybara-github
authored andcommitted
docs: Refine description for field task_execution
PiperOrigin-RevId: 633294486
1 parent 9c2348d commit d9fe642

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

google/cloud/batch/v1alpha/task.proto

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,18 @@ message StatusEvent {
107107
// This Task Execution field includes detail information for
108108
// task execution procedures, based on StatusEvent types.
109109
message TaskExecution {
110-
// When task is completed as the status of FAILED or SUCCEEDED,
111-
// exit code is for one task execution result, default is 0 as success.
110+
// The exit code of a finished task.
111+
//
112+
// If the task succeeded, the exit code will be 0. If the task failed but not
113+
// due to the following reasons, the exit code will be 50000.
114+
//
115+
// Otherwise, it can be from different sources:
116+
// - Batch known failures as
117+
// https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
118+
// - Batch runnable execution failures: You can rely on Batch logs for further
119+
// diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs.
120+
// If there are multiple runnables failures, Batch only exposes the first
121+
// error caught for now.
112122
int32 exit_code = 1;
113123

114124
// Optional. The tail end of any content written to standard error by the task

0 commit comments

Comments
 (0)