Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Flask SocketIO with Google App Engine flex

I am trying to deploy my Flask server that uses flask_socketio for websockets.

I am using Google App Engine in a flex environment.

From the logs, the build finishes but times out during network provision. I am able to manually split traffic to instance of the new version but when I try to access the server I get a worker timeout error.

app.yamlapp.yamlmain.pymain.py__init__.py__init__.py

1 2 846
2 REPLIES 2

Hi @makeiteasier,

Welcome to Google Cloud Community!

You are getting the worker timeout error due to the static data limit being maximized. All languages except for Golang cannot be larger than 32MB. Limit for Golang is 64MB.

I would suggest using Google Cloud Run so that you can use containers such as Artifact Registry so that you won't need to download your data file. 

Hope this helps.

Hello, I also have an app that uses WebSocket, in terms of price, App Engine Flex vs Cloud Run, which would be cheaper for an app like that? Thank you.

As