Flask Multi-thread (app threaded)

saulleon
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

  • Clément_Stenac
    Clément_Stenac Dataiker, Dataiku DSS Core Designer, Registered Posts: 753 Dataiker
    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

Setup Info
    Tags
      Help me…