SYSTEM$WAIT_FOR_OPENFLOW_CONNECTOR_STATUS

functionnot supportedContainer services & dev toolingpreview

docs.snowflake.com ↗

System functions

Waits until each named connector reaches one of the statuses you specify. Use this function when you know the expected status after an ALTER command. When you only need to wait until the connector settles, use SYSTEM$WAIT_FOR_STABLE_OPENFLOW_CONNECTORS instead.

Syntax

SELECT SYSTEM$WAIT_FOR_OPENFLOW_CONNECTOR_STATUS(
  <timeout_seconds>,
  '<allowed_statuses>',
  '<connector_name>' [ , '<connector_name>' ... ]
);

Parameters

NameRequiredDescription
timeout_secondsrequiredMaximum time to wait, in seconds.
'allowed_statuses'requiredComma-separated list of acceptable statuses, for example 'RUNNING' or 'RUNNING,STOPPED'.
'connector_name'requiredOne or more connector names. Use the fully qualified name <database>.<schema>.<name>. With USE DATABASE and USE SCHEMA set, a simple name resolves in the current session.

Returns

Returns 'OK' on success. Raises an error if the timeout elapses or if a connector enters a failed state.

Usage notes

Access control

Requires any privilege on the named connector.

See also

Referenced by