Skip to content

Commit

Permalink
Resolved incidents can't be a target for RuleEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Nov 14, 2024
1 parent 8856e7e commit ebaf466
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ebaf466

Please sign in to comment.