Timeout with dash webapp as Model view in plugin

Antal
Antal Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 91 Neuron

I've made a plugin that contains a dash webapp configured as a Model view.

The Model view works as an extension to Model reports in VisualML to perform permutation importance calculations.

However, with large models with many features the required calculations take a while to complete. After exactly a minute of running, the Model view/webapp crashes with a timeout error.

The plugin does work correctly, as everything is fine with a small model where the calculations can be completed within a minute.

Is there a way to extend this timeout? Or is there another way to implement this to avoid this timeout problem?


Operating system used: Windows

Best Answer

Answers

  • Antal
    Antal Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 91 Neuron

    Thanks for the tip!

    I managed to get this working by using DiskcacheLongCallbackManager and putting the callback function in it's own script in the python-lib

Setup Info
    Tags
      Help me…