Fix LLM validation and dashboard health hot paths

This commit is contained in:
2026-03-15 13:18:51 +03:00
parent d867f52ae5
commit 4efce79df5
24 changed files with 1398 additions and 83 deletions

View File

@@ -307,7 +307,7 @@ class DashboardValidationPlugin(PluginBase):
await notification_service.dispatch_report(
record=db_record,
policy=policy,
background_tasks=context.background_tasks if context else None
background_tasks=getattr(context, "background_tasks", None) if context else None
)
except Exception as e:
log.error(f"Failed to dispatch notifications: {e}")