实现 video batch 自动清理与按需标注视频,并补充子进程调用测试。

batch 完成后仅保留数据库文本结果,勾选时才生成临时标注视频(24h TTL);新增 FastAPI 到 reference bundle 与 algorithm_runner 的单元测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-21 16:30:48 +08:00
parent e6434d0bb6
commit 09885b4184
10 changed files with 2047 additions and 1354 deletions

View File

@@ -40,3 +40,9 @@ VOICE_FILE_LOG_PATH: str = "logs/voice_{surgery_id}.txt"
VOICE_UPLOAD_MAX_BYTES: int = 10 * 1024 * 1024
VOICE_CONFIRM_MAX_FAILED_PARSE_ROUNDS: int = 2
# --- 非实时 batch 标注视频临时保留(小时)---
VIDEO_BATCH_VIS_TTL_HOURS: int = 24
# --- 非实时 batch 标注视频临时保留 ---
VIDEO_BATCH_VIS_TTL_HOURS: int = 24