Skip to content

Commit 7e73d48

Browse files
Google APIscopybara-github
authored andcommitted
docs: Refine description for field task_execution
PiperOrigin-RevId: 633367898
1 parent bd8f473 commit 7e73d48

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

google/cloud/batch/v1/task.proto

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,18 @@ message StatusEvent {
102102
// This Task Execution field includes detail information for
103103
// task execution procedures, based on StatusEvent types.
104104
message TaskExecution {
105-
// When task is completed as the status of FAILED or SUCCEEDED,
106-
// exit code is for one task execution result, default is 0 as success.
105+
// The exit code of a finished task.
106+
//
107+
// If the task succeeded, the exit code will be 0. If the task failed but not
108+
// due to the following reasons, the exit code will be 50000.
109+
//
110+
// Otherwise, it can be from different sources:
111+
// - Batch known failures as
112+
// 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.
107117
int32 exit_code = 1;
108118
}
109119

0 commit comments

Comments
 (0)