mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🔀 Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
06868cdd74
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
🐛 — Fix bug in retry_before_notification logic when success
|
||||
|
||||
## 0.7.2
|
||||
|
||||
Date: 2025-01-24
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue