Google Cloud Batch V1 Client - Class TaskExecution (0.2.2)

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.

Generated from protobuf field int32 exit_code = 1;

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.

Generated from protobuf field int32 exit_code = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this