diff --git a/CHANGELOG.md b/CHANGELOG.md index 070c573..a15d133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- 🐛 — Fix bug in retry_before_notification logic + ## 0.7.1 Date: 2025-01-15 diff --git a/argos/server/alerting.py b/argos/server/alerting.py index 1145053..81b3a3d 100644 --- a/argos/server/alerting.py +++ b/argos/server/alerting.py @@ -56,7 +56,7 @@ def need_alert( task.contiguous_failures = task.retry_before_notification # Severity has not changed, but there has been enough failures # to create a notification - elif task.retry_before_notification == task.contiguous_failures: + elif task.retry_before_notification + 1 == task.contiguous_failures: send_notif = True return send_notif