Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions packages/google-cloud-batch/google/cloud/batch_v1/types/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,22 @@ class TaskExecution(proto.Message):

Attributes:
exit_code (int):
When task is completed as the status of
FAILED or SUCCEEDED, exit code is for one task
execution result, default is 0 as success.
The exit code of a finished task.

If the task succeeded, the exit code will be 0.
If the task failed but not due to the following
reasons, the exit code will be 50000.

Otherwise, it can be from different sources:

- Batch known failures as
https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
- Batch runnable execution failures: You can
rely on Batch logs for further diagnose:
https://cloud.google.com/batch/docs/analyze-job-using-logs.
If there are multiple runnables failures,
Batch only exposes the first error caught for
now.
"""

exit_code: int = proto.Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,22 @@ class TaskExecution(proto.Message):

Attributes:
exit_code (int):
When task is completed as the status of
FAILED or SUCCEEDED, exit code is for one task
execution result, default is 0 as success.
The exit code of a finished task.

If the task succeeded, the exit code will be 0.
If the task failed but not due to the following
reasons, the exit code will be 50000.

Otherwise, it can be from different sources:

- Batch known failures as
https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
- Batch runnable execution failures: You can
rely on Batch logs for further diagnose:
https://cloud.google.com/batch/docs/analyze-job-using-logs.
If there are multiple runnables failures,
Batch only exposes the first error caught for
now.
stderr_snippet (str):
Optional. The tail end of any content written
to standard error by the task execution. This
Expand Down