'Set max number of threads in Flask

I am using Flask as service for requests that execute heavy processing tasks. I want to use multi threading. I made a test and opened 100 threads. I'm afraid that the service will crash at some n threads. The max execution concurrency will be 10 a week. Where do I define the max running threads?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source