activate()#
#activate()
A procedure that activates the RelationalAI (RAI) Native App.
While the app is activated, Python users may create and query models using the RAI Python API.
Requires the app_admin
application role.
Parameters#
None.
Returns#
STRING
Example#
Use the app.activate()
procedure to activate the RAI Native App after installing it, or to re-activate an app that has been deactivated:
#CALL relationalai.app.activate();
/*+----------------------------------------------+
| RelationalAI service activated successfully. |
+----------------------------------------------+ */
When you activate your app for the first time, several Snowflake compute resources required for the app to function are provisioned. It may take several minutes to provision these resources prior to the app being fully activated. See Compute Resources for more information.
When you re-activate a deactivated app:
- The CDC service is returned to its previous state. If CDC is enabled, changes to data streams that occurred while the app was deactivated are processed.
- All engines that were deleted when the app was deactivated are recreated. Python queries whose transactions were cancelled when the app was deactivated do not resume automatically.
It may take several minutes to re-create engines after the app is re-activated.
Use the engines
view to monitor the status of your engines.
See App Management for more information on activating and deactivating the RAI Native App.