Add voice analytics filters and metrics

This commit is contained in:
2026-04-26 22:00:34 +08:00
parent 3805c18622
commit 55ca0985eb
25 changed files with 710 additions and 39 deletions

View File

@@ -6,6 +6,7 @@ from app.core.celery_app import celery_app
from app.core.logging import get_logger
from app.db.database import _get_session_factory
from app.services.story_service import prune_story_audio_cache
from app.tasks.utils import run_with_disposed_engine
logger = get_logger(__name__)
@@ -21,7 +22,7 @@ def prune_story_audio_cache_task():
return await prune_story_audio_cache(session)
try:
result = asyncio.run(_run())
result = asyncio.run(run_with_disposed_engine(_run()))
logger.info("prune_story_audio_cache_task_completed", **result)
return result
except Exception as exc: