Problem scenario
You are designing a Flask application with Python running some long-running processes. You want to handle the requests asynchronously. The individual requests will have a duration of more than one hour. What is the recommended way of handling this?
Solution
Use a task queue like Celery or RQ (Redis Queue).
Sources:
https://stackoverflow.com/questions/42790362/how-to-handle-long-sql-query-in-flask