Flask Multi-thread (app threaded)
![saulleon](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar8.png)
saulleon
Registered Posts: 22 ✭✭✭✭
Hi!
Is there any way to enable multi-thread in a python flask app?
app.run(host=HOST, port=PORT, threaded=True)
This code is controlled by Dataiku, and it is injected to webapp editor.
How can I change it?
Best Answer
-
Hi,
Please go to the "Settings" tab of the webapp, and set the "number of processes" to 0 to enable threading.
This feature was added in DSS 7, so you will need at least this version.
Answers
-
Awesome! Thank you Clement!
-
rmoore Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Participant, Neuron 2023 Posts: 33 Neuron
Hi @Clément_Stenac
- how do we modify the "number of processes" in a custom webapp plugin? The backend parameters are not available by default.