I know how to download the file from cloud storage within the cloud run instance. But, I can’t find the syntax for reading the file in python. I’m looking to immediately convert the csv file into a pandas dataframe, just by using pd.read_csv(‘testing.csv’). So my personal code looks like, download_blob(bucket_name, source_blob_name, ‘testing.csv’). So shouldn’t I ..
first post on SO, let me know how I can improve my question. 1. Summary Goal: My app is a Craigslist scraper, it finds new posts and sends the feed to the user’s email. It has a main thread that always listens to requests, and a worker thread, managed by the main thread, and is ..
I have a Django app that I have been working on. When I run it locally it runs perfectly. When I run it in a container using Cloud Run I get the following error: ‘Credentials’ object has no attribute ‘id_token’ Here is the offending code (payload is a dictionary object): def ProcessPayload(payload): # Get authorized ..
I am trying to deploy a rest api in cloud run where one endpoint launches an async job. The job is defined inside a function in the code. It seems one way to do it is to use Cloud Task, but this would mean to make a self-call to another endpoint of the deployed api. ..
I’m attempting to deploy a simple Discord bot written in python and containerized via Docker to Google Cloud Run. The Dockerfile is very simple: FROM python:3.9 WORKDIR /app COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt COPY . . ENV PORT 8080 ENV HOST 0.0.0.0 CMD [ "python3", "discord_bot.py"] I can run the bot without ..
For instance, if I do something like f = open("demofile.txt", "w") f.write("test content") f.close() in a serverless environment like Google Cloud Run or Anthos (assume this is part of a web app), will demofile.txt exist permanently, and will I always be able to access it through f.read()? Source: Python..
I have a flask python API exposed in a gcloud run instance. This seems to works fine, but, some errors lead me to think that my https requests are being redirected to http. So, to test it, I’ve added a before request controll, to avoid any none desired http request (I only want to allow ..
I’m facing this issue where i have a python script that needs to be run every day at 00:00am on google cloud, possibly using Google Cloud Run, what I’d like to know is something quite specific to which i couldn’t find a good answer to, the thing is… Which way is technically best to achieve ..
I was following this guide https://medium.com/firebase-developers/hosting-flask-servers-on-firebase-from-scratch-c97cfb204579 and I’m stuck on firebase’s ./node_modules/.bin/firebase serve command I was successfully able to deploy the project using Cloud Run and get a service url that is working for the site, but when I try and serve it locally it produces this error on the static page when running to ..
I’m trying to use cloud run for receiving millions of log messages through HTTPS (streaming) and sending them to cloud logging. But I found there is some loss of data, the number of messages in cloud logging is less than cloud run receiving. This is the sample code that I tried, # unzip data data ..