Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
b2c140b
1
Parent(s): ee8b0b0
backend stabilization
Browse files- api/v1/dashboard.py +1 -1
api/v1/dashboard.py
CHANGED
|
@@ -95,7 +95,7 @@ async def get_dashboard_hydration(
|
|
| 95 |
except Exception as e:
|
| 96 |
logger.error(f"Hydration Escalations Error: {e}")
|
| 97 |
return {"rules": [], "breaches": [], "audit": []}
|
| 98 |
-
async def run_insights():
|
| 99 |
try:
|
| 100 |
# During hydration, we only wait 10s for AI to prevent blocking the entire dashboard.
|
| 101 |
# If it takes longer, we'll serve the background cache or a processing fallback.
|
|
|
|
| 95 |
except Exception as e:
|
| 96 |
logger.error(f"Hydration Escalations Error: {e}")
|
| 97 |
return {"rules": [], "breaches": [], "audit": []}
|
| 98 |
+
async def run_insights(stats_data: Optional[Dict] = None):
|
| 99 |
try:
|
| 100 |
# During hydration, we only wait 10s for AI to prevent blocking the entire dashboard.
|
| 101 |
# If it takes longer, we'll serve the background cache or a processing fallback.
|