Skip to main content

Get statement status

Check whether a statement that was left running has finished, failed or is still going.

Command in the Snowflake toolkit · id ooa.snowflake/get_statement_status · 4 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Account address (URL)StringNoYour Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com.
Statement handleStringYesHandle from Run SQL statement.
TokenCredentialNoAccess token from the vault: an OAuth token, a key-pair JWT or a programmatic access token. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Token typeStringNoOAUTHKind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN.

Outputs​

OutputTypeWhat it is
statusStringrunning, succeeded or failed.
messageStringSnowflake's message, including the error text when it failed.
total_rowsNumberRows in the result once it succeeded.