update minio port

This commit is contained in:
Kevin
2026-05-22 09:35:41 +08:00
parent 153c91f8ff
commit 62b14d7386
22 changed files with 1256 additions and 1170 deletions

View File

@@ -30,7 +30,7 @@ from app.services.video_batch_cleanup import (
purge_surgery_batch_tree,
stage_visualization_pending,
)
from app.services.video_batch_runner import VideoBatchRunner
from app.algo_host import BatchAlgorithmService
from app.services.voice_terminal_hub import VoiceTerminalHub
from app.surgery_errors import SurgeryPipelineError
@@ -63,7 +63,7 @@ def _require_site_config_path() -> Path:
def _background_finalize_visualization(
runner: VideoBatchRunner,
runner: BatchAlgorithmService,
surgery_id: str,
) -> None:
try:
@@ -136,7 +136,7 @@ async def offline_batch(
OFFLINE_BATCH_FLOW_MARKER,
include_visualization,
)
runner = VideoBatchRunner()
runner = BatchAlgorithmService()
suffix = Path(video1.filename or "video.mp4").suffix or ".mp4"
work_root = runner.root_dir / surgery_id / "upload"
work_root.mkdir(parents=True, exist_ok=True)
@@ -227,7 +227,7 @@ async def offline_batch_visualization(surgery_id: str) -> FileResponse:
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
detail="surgery_id must be exactly 6 digits",
)
runner = VideoBatchRunner()
runner = BatchAlgorithmService()
path = runner.latest_visualization_path(surgery_id)
if path is None:
raise HTTPException(