mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-05-18 19:20:36 +02:00
Compare commits
3 commits
797a60a85c
...
5abdd8414d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5abdd8414d | ||
![]() |
06868cdd74 | ||
![]() |
2b82f7c8f2 |
3 changed files with 9 additions and 3 deletions
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## 0.7.3
|
||||||
|
|
||||||
|
Date: 2025-01-26
|
||||||
|
|
||||||
|
🐛 — Fix bug in retry_before_notification logic when success
|
||||||
|
|
||||||
## 0.7.2
|
## 0.7.2
|
||||||
|
|
||||||
Date: 2025-01-24
|
Date: 2025-01-24
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
VERSION = "0.7.2"
|
VERSION = "0.7.3"
|
||||||
|
|
|
@ -36,7 +36,7 @@ def need_alert(
|
||||||
# create notification of success immediately
|
# create notification of success immediately
|
||||||
if (
|
if (
|
||||||
status == "success"
|
status == "success"
|
||||||
and task.contiguous_failures >= task.retry_before_notification
|
and task.contiguous_failures >= task.retry_before_notification + 1
|
||||||
):
|
):
|
||||||
send_notif = True
|
send_notif = True
|
||||||
task.contiguous_failures = 0
|
task.contiguous_failures = 0
|
||||||
|
@ -56,7 +56,7 @@ def need_alert(
|
||||||
task.contiguous_failures = task.retry_before_notification
|
task.contiguous_failures = task.retry_before_notification
|
||||||
# Severity has not changed, but there has been enough failures
|
# Severity has not changed, but there has been enough failures
|
||||||
# to create a notification
|
# 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
|
send_notif = True
|
||||||
|
|
||||||
return send_notif
|
return send_notif
|
||||||
|
|
Loading…
Reference in a new issue