Timeout a call to an unresponsive Flask route
I currently have a route in my Flask app that pulls data from an external
server and then pushes the results to my front end. The external server is
occasionally slow or unresponsive. What's the best way to place a timeout
on the route call so the front end doesn't hang if the external server is
lagging? Or is there a more appropriate way to handle this situation in
Flask?
No comments:
Post a Comment