From 5051a0fd6808543b3c18a705776f493f23585443 Mon Sep 17 00:00:00 2001 From: Vladimir Filonov Date: Thu, 14 Nov 2024 13:03:36 +0400 Subject: [PATCH] fix: Resolved incidents can't be a target for RuleEngine (#2483) --- keep/api/core/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keep/api/core/db.py b/keep/api/core/db.py index 735c0bec1..4fab51494 100644 --- a/keep/api/core/db.py +++ b/keep/api/core/db.py @@ -1717,6 +1717,7 @@ def get_incident_for_grouping_rule( .where(Incident.tenant_id == tenant_id) .where(Incident.rule_id == rule.id) .where(Incident.rule_fingerprint == rule_fingerprint) + .where(Incident.status != IncidentStatus.RESOLVED.value) .order_by(Incident.creation_time.desc()) ).first()