Reputation: 43
Is it possible to start a specific .py file within a managed notebook using cloud functions in GCP ? I was hoping that there might be some kind of request sent to Vertex AI workbench from the Cloud Function, which will have details of which Notebook to trigger and also specify which .py file within this notebook to start. Does anyone has any idea ?
Upvotes: 1
Views: 388
Reputation: 10048
Managed Notebooks kernels under the hood are just Docker containers. Each kernel correspond to a Deep Learning container
IIUC you will call a Cloud Function -> CF launches a new Managed Notebook and this Managed Notebook executes a Python file.
You have few options:
docker run --name=cf-agent \
--restart always \
--net host \
--pid host \
gcr.io/deeplearning-platform-release/base-cu113.py310 \
python3 /script.py
https://cloud.google.com/vertex-ai/docs/workbench/reference/rest/v1/projects.locations.executions
Upvotes: 0