Timeout with dash webapp as Model view in plugin
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
-
Hi,
this is not related to Dataiku, but more globally to web servers
There are many ways to overcome the timeout problem, but as you are referring to Dash webapps, I would suggest to look at https://dash.plotly.com/long-callbacks
This is the method they recommend for solving the timeout problem.
I hope it helps
Best
Answers
-
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