execution

package
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PollInterval = 2 * time.Second

PollInterval controls the polling interval when waiting for execution results.

Functions

func NewExecutionCmd

func NewExecutionCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL