I am running a Gunicorn server with a Flask web app. I use the following command to start the server
gunicorn -c /config/serverConfig.py app:APP
Inside serverConfig.py
, I have timeout = 180
Howevever, the long running calls timeout after 120 seconds.
Is there something I should be doing differently?
My app is running on a container group on the Bluemix cloud, and there is a 120s time out limit for the load balancer in front of the container. This was overriding whatever timeout I had in my app.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.