Dash long tasks via redis queue Dash long tasks via redis queue heroku heroku

Dash long tasks via redis queue


I think you are looking for the Interval component (documentation here). It triggers a client update at a regular interval, e.g. once per second. The callback would be along the lines of,

...Interval(id='trigger', interval=1000)  # must be in the app layout...@app.callback(Output(...), [Input('trigger', 'n_intervals')])def poll_update(n_intervals):    # check status of redis here and update the output accordingly