Resource: Task
Task represents a single run of a container to completion.
JSON representation |
---|
{ "apiVersion": string, "kind": string, "metadata": { object ( |
Fields | |
---|---|
apiVersion |
Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. |
kind |
Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. |
metadata |
Optional. Standard object's metadata. |
spec |
Optional. Specification of the desired behavior of a task. |
status |
Output only. Current status of a task. |
TaskStatus
TaskStatus represents the status of a task.
JSON representation |
---|
{ "observedGeneration": integer, "conditions": [ { object ( |
Fields | |
---|---|
observedGeneration |
Optional. The 'generation' of the task that was last processed by the controller. |
conditions[] |
Optional. Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Task-specific conditions include:
|
index |
Required. Index of the task, unique per execution, and beginning at 0. |
startTime |
Optional. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completionTime |
Optional. Represents time when the task was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
retried |
Optional. The number of times this task was retried. Instances are retried when they fail up to the maxRetries limit. |
lastAttemptResult |
Optional. Result of the last attempt of this task. |
logUri |
Optional. URI where logs for this task can be found in Cloud Console. |
TaskAttemptResult
Result of a task attempt.
JSON representation |
---|
{
"status": {
object ( |
Fields | |
---|---|
status |
Optional. The status of this attempt. If the status code is OK, then the attempt succeeded. |
exitCode |
Optional. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details. |
Methods |
|
---|---|
|
Get information about a task. |
|
List tasks. |