Resource: Task
A Cloud Batch task.
JSON representation |
---|
{
"name": string,
"status": {
object ( |
Fields | |
---|---|
name |
Task name. The name is generated from the parent TaskGroup name and 'id' field. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01". |
status |
Task Status. |
TaskStatus
Status of a task.
JSON representation |
---|
{ "state": enum ( |
Fields | |
---|---|
state |
Task state. |
status |
Detailed info about why the state is reached. |
resource |
The resource usage of the task. |
TaskResourceUsage
TaskResourceUsage describes the resource usage of the task.
JSON representation |
---|
{ "coreHours": number } |
Fields | |
---|---|
core |
The CPU core hours the task consumes based on task requirement and run time. |
Methods |
|
---|---|
|
Return a single Task. |
|
List Tasks associated with a job. |