Cloud Functions
On this page
Note
This is a Preview feature.
SingleStore Cloud Functions is a serverless, cloud-based service that allows users to run code without managing compute resources.
You can create and manage cloud functions using the Cloud Portal.
Publish Cloud Functions using the Cloud Portal
Create a Cloud Function
Cloud Functions can be created for shared notebooks only.
-
Using Cloud Functions in the left navigation
-
Using Shared Notebooks
-
Navigate to Data Studio > Shared.
-
Select a shared notebook.
-
Select Publish (on the top right).
-
New Cloud Function
After selecting Publish, a new dialog box appears.
Publish Settings |
|
---|---|
Publish as |
Select Cloud Function. |
Name |
Enter a name for the cloud function. |
Description |
Enter the cloud function description. |
Notebook |
Select a shared notebook to publish as a cloud function. |
Deployment |
Select the SingleStore deployment (workspace) your notebook will connect to. Selecting a workspace allows you to connect to your SingleStore databases referenced in the Notebook natively. |
Select Next.
Select Publish to publish your notebook as a cloud function.
Manage an Existing Cloud Function
To view an existing cloud function, select Cloud Functions in the left navigation.
View a Cloud Function
To view a cloud function, select the cloud function name under the Name column.
You can view the following details for each cloud function:
You can view the details of a cloud function on the right navigation pane.
Update a Cloud Function
To update an existing cloud function, select the ellipsis in the Actions column of the cloud function, and select Update.
You can also update the cloud function from a shared notebook.
Select Update Cloud Function.
Delete a Cloud Function
To delete an existing cloud function, select the ellipsis in the Actions column of the cloud function, and select Delete.
Status of Cloud Functions
Status |
Description |
---|---|
Initializing |
The notebook is creating or updating the cloud function. |
Active |
The notebook is successfully published as a cloud function. |
Failed |
The cloud function is not configured correctly. |
Error |
An error unrelated to the notebook code prevented the cloud function from initializing. |
Troubleshoot Cloud Functions
automatically saves a snapshot of the notebook for each execution that fails.
Error |
Solution |
---|---|
Workspace Deleted |
Update the cloud function and select a deployment. |
Workspace Suspended |
Resume the workspace, or create a new cloud function with a different deployment. |
Database Detached |
Reattach the database with the right permissions or create a new cloud function with a different database. |
Notebook Deleted/Not Present |
Create a new cloud function with a different notebook. |
Internal Errors/Misc |
Reach out to SingleStore Support or use the chat feature in the Cloud Portal. |
Last modified: December 5, 2024