Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/dispatch/ai/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ def generate_incident_summary(incident: Incident, db_session: Session) -> str:
if incident.visibility == Visibility.restricted:
return "Incident summary not generated for restricted incident."

# Skip if incident is a duplicate
if incident.duplicates:
return "Incident summary not generated for duplicate incident."

# Skip if no incident review document
if not incident.incident_review_document or not incident.incident_review_document.resource_id:
log.info(
Expand Down
5 changes: 5 additions & 0 deletions src/dispatch/incident/scheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ def incident_report_weekly(db_session: Session, project: Project):
# Skip restricted incidents
if incident.visibility == Visibility.restricted:
continue

# Skip if incident is a duplicate
if incident.duplicates:
continue

try:
# if already summary generated, use that instead
if incident.summary:
Expand Down
Loading