Reference documentation and code samples for the Google Cloud Batch V1 Client class Runnable.
Runnable describes instructions for executing a specific script or container as part of a Task.
Generated from protobuf message google.cloud.batch.v1.Runnable
Namespace
Google \ Cloud \ Batch \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ container
↳ script
↳ barrier
↳ display_name
string
Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs.
↳ ignore_exit_status
bool
Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.
↳ background
bool
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).
↳ always_run
bool
By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.
↳ environment
Google\Cloud\Batch\V1\Environment
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
↳ timeout
↳ labels
getContainer
Container runnable.
hasContainer
setContainer
Container runnable.
$this
getScript
Script runnable.
hasScript
setScript
Script runnable.
$this
getBarrier
Barrier runnable.
hasBarrier
setBarrier
Barrier runnable.
$this
getDisplayName
Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs.
string
setDisplayName
Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs.
var
string
$this
getIgnoreExitStatus
Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.
bool
setIgnoreExitStatus
Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.
var
bool
$this
getBackground
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).
bool
setBackground
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).
var
bool
$this
getAlwaysRun
By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging.
The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.
bool
setAlwaysRun
By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging.
The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.
var
bool
$this
getEnvironment
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
hasEnvironment
clearEnvironment
setEnvironment
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
$this
getTimeout
Timeout for this Runnable.
hasTimeout
clearTimeout
setTimeout
Timeout for this Runnable.
$this
getLabels
Labels for this Runnable.
setLabels
Labels for this Runnable.
$this
getExecutable
string