google-cloud-functions

How to get names of scheduled queries in bigquery

How to get names of scheduled queries in bigquery Question: Using a python client to connect with bigquery, how can we get names of all the scheduled queries present in that project? I tried following up with this link – https://cloud.google.com/bigquery/docs/reference/datatransfer/libraries But got no information on the names of the scheduled queries. Asked By: Runtime …

Total answers: 1

Python: How to Install OpenCV on Google cloud functions?

Python: How to Install OpenCV on Google cloud functions? Question: I’m using Google cloud functions Gen2 and Python 3.10 and the latest version of gcloud cli and opencv-python==4.6.0.66 and functions-framework==3.2.0 I can’t deploy on google cloud, because import cv2 is causing this error ImportError: libGL.so.1: cannot open shared object file: No such file or directory …

Total answers: 1

GCP – Python: Is it possible to rename a file without using the os module?

GCP – Python: Is it possible to rename a file without using the os module? Question: I’m using the google cloud functions, I need to delete and rename files but using the os module and any module which is similar to it, will cause problems on Google cloud platform. I don’t have the exact error …

Total answers: 1

Send a JSON Payload with labels using Google Cloud Logging Python library

Send a JSON Payload with labels using Google Cloud Logging Python library Question: I’m using the google-cloud-logging Python client library with Cloud Functions. I’m following recommendations and using the standard Python logging library. v3+ of this library supports logging JSON payloads and setting custom metadata. I wish to both set a custom label and log …

Total answers: 1

Trigger Cloud Composer Using Google Cloud Function

Trigger Cloud Composer Using Google Cloud Function Question: I have ran this exact code below but get an error in when attempting to trigger the dag using a cloud function. The error and code are described below: gcs-dag-trigger-function 8bhxprce8hze Traceback (most recent call last): File "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app response = self.full_dispatch_request() File "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", …

Total answers: 1