Skip to content

Commit

Permalink
ob1
Browse files Browse the repository at this point in the history
  • Loading branch information
mderynck committed Nov 18, 2024
1 parent 37ff11a commit 1733506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/apps/alerts/tasks/check_escalation_finished.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def check_personal_notifications_task() -> None:
def retry_audited_alert_group(alert_group) -> bool:
cache_key = f"audited-alert-group-retry-count-{alert_group.id}"
retry_count = cache.get(cache_key, 0)
if retry_count > settings.AUDITED_ALERT_GROUP_MAX_RETRIES:
if retry_count >= settings.AUDITED_ALERT_GROUP_MAX_RETRIES:
task_logger.info(f"Not retrying audited alert_group={alert_group.id} max retries exceeded.")
return False

Expand Down

0 comments on commit 1733506

Please sign in to comment.