Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process takes too much time #18

Open
jrgifford opened this issue Jan 5, 2015 · 3 comments
Open

Process takes too much time #18

jrgifford opened this issue Jan 5, 2015 · 3 comments

Comments

@jrgifford
Copy link

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.

@joochung
Copy link

I'm encountering the same issue.

@joochung
Copy link

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
....
....

@sursma
Copy link

sursma commented Nov 17, 2015

I tried same but didnt work, instead I just commented warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants