RunnableArgs

data class RunnableArgs(val alwaysRun: Output<Boolean>? = null, val background: Output<Boolean>? = null, val barrier: Output<BarrierArgs>? = null, val container: Output<ContainerArgs>? = null, val environment: Output<EnvironmentArgs>? = null, val ignoreExitStatus: Output<Boolean>? = null, val labels: Output<Map<String, String>>? = null, val script: Output<ScriptArgs>? = null, val timeout: Output<String>? = null) : ConvertibleToJava<RunnableArgs>

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

Constructors

Link copied to clipboard
constructor(alwaysRun: Output<Boolean>? = null, background: Output<Boolean>? = null, barrier: Output<BarrierArgs>? = null, container: Output<ContainerArgs>? = null, environment: Output<EnvironmentArgs>? = null, ignoreExitStatus: Output<Boolean>? = null, labels: Output<Map<String, String>>? = null, script: Output<ScriptArgs>? = null, timeout: Output<String>? = null)

Properties

Link copied to clipboard
val alwaysRun: Output<Boolean>? = null

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.

Link copied to clipboard
val background: Output<Boolean>? = null

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

Link copied to clipboard
val barrier: Output<BarrierArgs>? = null

Barrier runnable.

Link copied to clipboard
val container: Output<ContainerArgs>? = null

Container runnable.

Link copied to clipboard
val environment: Output<EnvironmentArgs>? = null

Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).

Link copied to clipboard
val ignoreExitStatus: Output<Boolean>? = null

Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Labels for this Runnable.

Link copied to clipboard
val script: Output<ScriptArgs>? = null

Script runnable.

Link copied to clipboard
val timeout: Output<String>? = null

Timeout for this Runnable.

Functions

Link copied to clipboard
open override fun toJava(): RunnableArgs