Code review comment for lp:~derks/mysql-mmm/angel-infinit-failures

Revision history for this message
BJ Dierkes (derks) wrote :

> I think a time condition should be added here. I don't want the angel to
> restart more than 10 times within 5 minutes, but I definitly want it to
> restart more than 10 times within hours/days/months.

I agree to that point, though any time there is a successful run the 'attempts' variable is reset to 0. I will look into wrapping the logic around a 'if < 5 minutes since the last time $attempts was reset' check.

« Back to merge proposal