@logisticregress wrote:
Hi Everyone,
I’m having an issue deploying Dash to Heroku, as I have a statistical algorithm (multivariate time series) embedded in a callback function (to dynamically change the forecast period). However, the calculation takes about 1.5 minutes, and Heroku throws an H12 error after 30 seconds. I have read a few posts on this forum, one someone posted boiler plate code to run background processes…which seems really complicated, and another about Celery. I’ve tried to implement Redis and queue the specific algorithm calls, but that didn’t do anything. I’ve also followed Herokus website for deploying Redis Queue, also nothing. Does anyone have any recommendations? Maybe not using Heroku to avoid the 30 second timeout? Is there not any easier way to force dash to run computationally expensive callbacks in the background? Happy to post code, although it’s a bit long. Since we’re all stuck at home, seemed like a good time to work on these problems. Really enjoying Dash otherwise.
Thanks!
Posts: 2
Participants: 2