Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PollInterval = 2 * time.Second
PollInterval controls the polling interval when waiting for execution results.
Functions ¶
func NewExecutionCmd ¶
NewExecutionCmd returns the `execution` parent command.
func WaitForExecution ¶ added in v0.1.24
func WaitForExecution( status func() (*models.StatusResponse, error), stderr io.Writer, executionID string, timeout int, ) error
WaitForExecution polls an execution's status with status, without downloading rows, until it stops running, and fails when it is still running at the timeout. It retries a failed status call that may succeed later, with a note on stderr, until the timeout; a client error such as an unknown execution ID or a bad API key fails at once.
Types ¶
This section is empty.