Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Timeout with dash webapp as Model view in plugin

Solved!
Antal
Level 3
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

0 Kudos
1 Solution
FlorentD
Developer Advocate

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

View solution in original post

2 Replies
FlorentD
Developer Advocate

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

Antal
Level 3
Author

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

0 Kudos

Labels

?

Setup info

?
A banner prompting to get Dataiku