Fix LLM validation and dashboard health hot paths
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user