Runnable class
Runnable describes instructions for executing a specific script or container as part of a Task.
Constructors
-
Runnable({Input<
bool> ? alwaysRun, Input<bool> ? background, Input<Barrier> ? barrier, Input<Container> ? container, Input<String> ? displayName, Input<Environment> ? environment, Input<bool> ? ignoreExitStatus, Input<Map< ? labels, Input<String, String> >Script> ? script, Input<String> ? timeout}) -
Creates a new Runnable.
alwaysRunBy 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.backgroundThis 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).barrierBarrier runnable.containerContainer runnable.displayNameOptional. 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.environmentEnvironment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).ignoreExitStatusNormally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.labelsLabels for this Runnable.scriptScript runnable.timeoutTimeout for this Runnable.const -
Runnable.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<
Barrier> ? -
Barrier runnable.
final
-
container
→ Input<
Container> ? -
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<
Environment> ? -
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<
Script> ? -
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