Flask Multi-thread (app threaded)

Solved!
saulleon
Level 3
Flask Multi-thread (app threaded)

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?

1 Solution
Clรฉment_Stenac

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.

View solution in original post

3 Replies
Clรฉment_Stenac

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.

saulleon
Level 3
Author

Awesome! Thank you Clement!

0 Kudos
rmoore

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. 

0 Kudos