SYSTEM$WAIT_FOR_SERVICES
functionsupportedContainer services & dev toolingWaits 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
| Name | Required | Description |
|---|---|---|
seconds_to_pause | required | Number of seconds to pause. |
service_name [ , ... ] | required | Names of one or more services to wait for. |
Returns
‘OK’ or fails in case of timeout.
Usage notes
- The current role must have the MONITOR privilege on the services listed in the command.