SYSTEM$WAIT_FOR_STABLE_OPENFLOW_RUNTIMES

functionnot supportedContainer services & dev tooling

docs.snowflake.com ↗

System functions

Waits until each named runtime leaves a transitional state. Gen 2 Openflow commands that change runtime state run asynchronously, so call this function after an ALTER command when a script must not continue until the change has settled. This is the recommended default for automation.

Syntax

SELECT SYSTEM$WAIT_FOR_STABLE_OPENFLOW_RUNTIMES(
  <timeout_seconds>,
  '<runtime_name>' [ , '<runtime_name>' ... ]
);

Parameters

NameRequiredDescription
timeout_secondsrequiredMaximum time to wait, in seconds.
'runtime_name'requiredOne or more runtime 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 runtime enters a failed state.

Usage notes

Access control

Requires any privilege on the named runtime.

See also

Referenced by