Skip to content

std.exec-wait-for action

Description

WaitForAction polls a command until it exits 0 or the deadline is reached. The command runs at most once per Interval (default 1s) and the whole poll loop runs for at most Timeout (default 5m).

Source: internal/exec/wait_for_action.go:16

Example usage:

imports: {
  std: 'github.com/cloudboss/unobin-library-std'
}

actions: {
  example: std.exec-wait-for {
    # Set input fields here.
  }
}

Inputs

argv

list(string)

required

interval

integer

default 1000000000

timeout

integer

default 300000000000

environment

map(string)

working-dir

string

Input Constraints

This kind declares no extra input constraints.

Outputs

attempts

integer

duration

integer

stdout

string

stderr

string