You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I prevent this from happening? Because otherwise, my inbox gets flooded every few hours. First with the "Process takes too much time", then with the "Back to normal" message.
The text was updated successfully, but these errors were encountered:
Looks like when there is an exception in the GraphiteAlert 'load' function, the self.waiting doesn't get reset to false. Hence the next iteration of the loop, the alert thinks the previous iteration is still running.
I ended up setting self.waiting to false in the exception block:
class GraphiteAlert(BaseAlert):
...
def load(self):
....
except Exception as e:
self.waiting = False
self.notify('critical', 'Loading error: %s' % e, target='loading', ntype='common')
self.waiting = False
....
....
How can I prevent this from happening? Because otherwise, my inbox gets flooded every few hours. First with the "Process takes too much time", then with the "Back to normal" message.
The text was updated successfully, but these errors were encountered: