Google Cloud Batch V1 Client - Class TaskExecution (0.3.0)

Reference documentation and code samples for the Google Cloud Batch V1 Client class TaskExecution.

This Task Execution field includes detail information for task execution procedures, based on StatusEvent types.

Generated from protobuf message google.cloud.batch.v1.TaskExecution

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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.

getExitCode

When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task execution result, default is 0 as success.

Returns
TypeDescription
int

setExitCode

When task is completed as the status of FAILED or SUCCEEDED, exit code is for one task execution result, default is 0 as success.

Parameter
NameDescription
var int
Returns
TypeDescription
$this