Flask multi-process worker pool in Python
You can't do this in Flask. But you can achieve the same result using, for example, uWSGI builtin functionalities or task queues like Celery.
Take a look at this answer for more details.
you can do it using RQ (http://python-rq.org/) and module flask-rq (https://github.com/mattupstate/flask-rq)