Hi, I have a question about the execution of callbacks.
I have a dash app with a scatter plot and a line plot. When hovering over the markers in the scatter plot, a callback is triggered that updates the line plot. I feel like when I quickly hover over many scatter markers and the callback that updates the line plot is triggered many times, the executions of this callback queue up.
I would like to interrupt the execution of the callback whenever the same callback is triggered again. This means that, when hovering over many scatter markers, only the callback for the scatter marker that was hovered over most recently is executed and all the previous callbacks that might still be running are interrupted. Is this possible?
I hope that I could make clear what I am trying to achieve.
I’ve never really gotten background callbacks to work unfortunately, so I didn’t go that route. Celery is recommended for production but Celery requires some infrastructure.