Check if callback is already running (creating Matplotlib images)

Hi all! I’m using Matplotlib to generate some of my plots and am then returning them to the Dash UI as static images. The problem I have is if the callback that does this gets called too quickly, then they’ll interfere and crash the app. I was wondering if there’s a way to make sure a callback only gets called once at a time or see which other callbacks are running to prevent an update. Thanks in advance!