SYSTEM$WAIT_FOR_SERVICES

functionsupportedContainer services & dev tooling

docs.snowflake.com ↗

System functions

Waits for one or more Snowpark Container Services services to reach the READY state (or becomes upgraded) before returning. - All services with names passed to the system function have READY status. - Any of the named services has the FAILED status. - The pause duration has reached the specified time duration, in seconds. You might use this function, for example, in a Native App scenario to pause the native app (with containers) setup script to allow for the services to upgrade correctly. For more information, see Upgrade an app with containers. Snowpark Container Services is available to accounts in AWS, Microsoft Azure, and Google Cloud Platform commercial regions, with some exceptions. For more information, see Available regions and considerations.

Syntax

SYSTEM$WAIT_FOR_SERVICES( <seconds_to_pause>, '<service_name>' [, ...] )

Parameters

NameRequiredDescription
seconds_to_pauserequiredNumber of seconds to pause.
service_name [ , ... ]requiredNames of one or more services to wait for.

Returns

‘OK’ or fails in case of timeout.

Usage notes

See also