|
31 | 31 | public final class TaskExecution extends com.google.api.client.json.GenericJson {
|
32 | 32 |
|
33 | 33 | /**
|
34 |
| - * When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task |
35 |
| - * execution result, default is 0 as success. |
| 34 | + * The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task |
| 35 | + * failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be |
| 36 | + * from different sources: - Batch known failures as |
| 37 | + * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - Batch runnable |
| 38 | + * execution failures: You can rely on Batch logs for further diagnose: |
| 39 | + * https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables |
| 40 | + * failures, Batch only exposes the first error caught for now. |
36 | 41 | * The value may be {@code null}.
|
37 | 42 | */
|
38 | 43 | @com.google.api.client.util.Key
|
39 | 44 | private java.lang.Integer exitCode;
|
40 | 45 |
|
41 | 46 | /**
|
42 |
| - * When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task |
43 |
| - * execution result, default is 0 as success. |
| 47 | + * The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task |
| 48 | + * failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be |
| 49 | + * from different sources: - Batch known failures as |
| 50 | + * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - Batch runnable |
| 51 | + * execution failures: You can rely on Batch logs for further diagnose: |
| 52 | + * https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables |
| 53 | + * failures, Batch only exposes the first error caught for now. |
44 | 54 | * @return value or {@code null} for none
|
45 | 55 | */
|
46 | 56 | public java.lang.Integer getExitCode() {
|
47 | 57 | return exitCode;
|
48 | 58 | }
|
49 | 59 |
|
50 | 60 | /**
|
51 |
| - * When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task |
52 |
| - * execution result, default is 0 as success. |
| 61 | + * The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task |
| 62 | + * failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be |
| 63 | + * from different sources: - Batch known failures as |
| 64 | + * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - Batch runnable |
| 65 | + * execution failures: You can rely on Batch logs for further diagnose: |
| 66 | + * https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables |
| 67 | + * failures, Batch only exposes the first error caught for now. |
53 | 68 | * @param exitCode exitCode or {@code null} for none
|
54 | 69 | */
|
55 | 70 | public TaskExecution setExitCode(java.lang.Integer exitCode) {
|
|
0 commit comments