RunnableResponse class

Runnable describes instructions for executing a specific script or container as part of a Task.

Constructors

RunnableResponse({required Input<bool> alwaysRun, required Input<bool> background, required Input<BarrierResponse> barrier, required Input<ContainerResponse> container, required Input<String> displayName, required Input<EnvironmentResponse> environment, required Input<bool> ignoreExitStatus, required Input<Map<String, String>> labels, required Input<ScriptResponse> script, required Input<String> timeout})
Creates a new RunnableResponse. alwaysRun 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. background 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). barrier Barrier runnable. container Container runnable. displayName 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. environment Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup). ignoreExitStatus Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead. labels Labels for this Runnable. script Script runnable. timeout Timeout for this Runnable.
const
RunnableResponse.fromMap(Map<String, dynamic> map)
factory

Properties

alwaysRun → Input<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.
final
background → Input<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).
final
barrier → Input<BarrierResponse>
Barrier runnable.
final
container → Input<ContainerResponse>
Container runnable.
final
displayName → Input<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.
final
environment → Input<EnvironmentResponse>
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
final
hashCode → int
The hash code for this object.
no setterinherited
ignoreExitStatus → Input<bool>
Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.
final
labels → Input<Map<String, String>>
Labels for this Runnable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
script → Input<ScriptResponse>
Script runnable.
final
timeout → Input<String>
Timeout for this Runnable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited