Compare commits

...

3 commits

Author SHA1 Message Date
Luc Didry
5abdd8414d
🏷 — Bump version (0.7.3) 2025-01-26 07:59:10 +01:00
Luc Didry
06868cdd74
🔀 Merge remote-tracking branch 'origin/develop' 2025-01-26 07:58:34 +01:00
Luc Didry
2b82f7c8f2
🐛 — Fix bug in retry_before_notification logic when success 2025-01-26 07:54:31 +01:00
3 changed files with 9 additions and 3 deletions

View file

@ -2,6 +2,12 @@
## [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.2"
VERSION = "0.7.3"

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
and task.contiguous_failures >= task.retry_before_notification + 1
):
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.retry_before_notification + 1 == task.contiguous_failures:
elif task.contiguous_failures == task.retry_before_notification + 1:
send_notif = True
return send_notif