File tree Expand file tree Collapse file tree
google/cloud/batch/v1alpha Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
109109message 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
You can’t perform that action at this time.
0 commit comments