Interval keeps firing

Hey,
I have a webservice with a dcc.Interval which sends heartbeats. However something went wrong inside the interval callback and it now throws an error every minute for the past 2 days. Some user might still have a cached version open? I tried to delete the interval and callback but then it keeps throwing this error:

"Callback function not found for output 'heartbeat.disabled', perhaps you forgot to prepend the '@'?"

I would appreciate any insights. The service is deployed on render

As you note yourself, this seems to indicate that someone has an old copy of your app open. If you make sure all copies are closed/refreshed, it should go away.

2 Likes

Thanks for your answer, but is this even possible to achieve?

Okay I just replaced it by this for now.

@callback(
        Output('heartbeat', 'disabled'),
        Input('heartbeat', 'n_intervals')
)
def heartbeat(n):
    try:
    ...
    except:
       return True