shaliz-kong commited on
Commit ·
07d80b8
1
Parent(s): 1ef8ded
added proper import in analytics worker
Browse files
app/tasks/analytics_worker.py
CHANGED
|
@@ -9,8 +9,8 @@ Changes:
|
|
| 9 |
- Zero changes to core KPI calculation logic
|
| 10 |
"""
|
| 11 |
|
| 12 |
-
|
| 13 |
-
asyncio
|
| 14 |
import json
|
| 15 |
import os
|
| 16 |
import time
|
|
@@ -27,6 +27,7 @@ from app.schemas.org_schema import OrgSchema
|
|
| 27 |
from app.service.vector_service import VectorService, VectorStoreEventType, VectorMetrics
|
| 28 |
from app.engine.kpi_calculators.registry import get_kpi_calculator_async
|
| 29 |
from app.service.embedding_service import EmbeddingService
|
|
|
|
| 30 |
|
| 31 |
# Configure structured logging for SRE tools (Loki, etc.)
|
| 32 |
logging.basicConfig(
|
|
|
|
| 9 |
- Zero changes to core KPI calculation logic
|
| 10 |
"""
|
| 11 |
|
| 12 |
+
|
| 13 |
+
import asyncio
|
| 14 |
import json
|
| 15 |
import os
|
| 16 |
import time
|
|
|
|
| 27 |
from app.service.vector_service import VectorService, VectorStoreEventType, VectorMetrics
|
| 28 |
from app.engine.kpi_calculators.registry import get_kpi_calculator_async
|
| 29 |
from app.service.embedding_service import EmbeddingService
|
| 30 |
+
from app.core.sre_logging import emit_worker_log
|
| 31 |
|
| 32 |
# Configure structured logging for SRE tools (Loki, etc.)
|
| 33 |
logging.basicConfig(
|