relationalai.app.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
Section titled “Parameters”None.
Returns
Section titled “Returns”STRING
Example
Section titled “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.
See App Management for more information on activating and deactivating the RAI Native App.