Compare commits

..

No commits in common. "5abdd8414d2851228915d5415544ad13f665660c" and "797a60a85cbd83511d7525d916e84b6b07665921" have entirely different histories.

3 changed files with 3 additions and 9 deletions

View file

@ -2,12 +2,6 @@
## [Unreleased]
## 0.7.3
Date: 2025-01-26
🐛 — Fix bug in retry_before_notification logic when success
## 0.7.2
Date: 2025-01-24

View file

@ -1 +1 @@
VERSION = "0.7.3"
VERSION = "0.7.2"

View file

@ -36,7 +36,7 @@ def need_alert(
# create notification of success immediately
if (
status == "success"
and task.contiguous_failures >= task.retry_before_notification + 1
and task.contiguous_failures >= task.retry_before_notification
):
send_notif = True
task.contiguous_failures = 0
@ -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.contiguous_failures == task.retry_before_notification + 1:
elif task.retry_before_notification + 1 == task.contiguous_failures:
send_notif = True
return send_notif