Set gunicorn timeout for Dash app deployed via Heroku

Hi,
I have an app with a callback involving some long computations, lasting longer than 30sec.
I use gunicorn + heroku and I need to set up a timeout higher than the default 30sec.

In my Procfile I tried this:

web: gunicorn index:server --timeout 90

To no avail.

Does anyone know how to do it?

Many many thanks for any insight(!).
Cheers,
Tom

2 Likes

I just found out that the problem comes from Heroku, which sets an initial timeout limit of 30sec, as described in the doc

https://devcenter.heroku.com/articles/limits#http-timeouts

Does anyone know an alternative to implement long computation in callbacks?

Many many thanks.
Cheers,
Tom

1 Like