{"modulePath":"github.com/duneanalytics/cli","version":"v0.1.25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package execution\n\n## Variables\n\n```go\nvar PollInterval = 2 * time.Second\n```\nPollInterval controls the polling interval when waiting for execution results.\n\n## Functions\n\n```go\nfunc NewExecutionCmd() *cobra.Command\n```\nNewExecutionCmd returns the \\`execution\\` parent command.\n\n```go\nfunc WaitForExecution(\n\tstatus func() (*models.StatusResponse, error), stderr io.Writer, executionID string, timeout int,\n) error\n```\nWaitForExecution 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.\n\n","path":"github.com/duneanalytics/cli/cmd/execution","name":"execution","synopsis":"","isRedistributable":true}
