This commit is contained in:
2026-07-18 12:25:14 +09:00
parent 516c78ec7e
commit 95a8d125de
8 changed files with 210 additions and 83 deletions
+18 -1
View File
@@ -196,7 +196,16 @@ async def trigger_wf1_analysis_and_email(
)
from B04_wf1_Surface.B04_wf1_Surface_Engine import run_surface_analysis
from B04_wf1_Surface.B04_wf1_Surface_Router import save_surface_analysis_to_db
from B04_wf1_Surface.B04_wf1_Surface_Router import (
save_surface_analysis_to_db,
write_surface_progress,
)
# 업로드 자동 분석도 progress.json에 진행률을 기록한다 (PLAN C-4)
write_surface_progress(project_root, 5, "analyzing", "WF1 분석을 시작합니다.")
def _on_progress(percent: int, stage: str, message: str) -> None:
write_surface_progress(project_root, percent, stage, message)
logger.info("WF1 분석 엔진 시작: las_path=%s", las_path)
analysis_result = await asyncio.to_thread(
@@ -206,6 +215,7 @@ async def trigger_wf1_analysis_and_email(
source_filters=source_filters,
methods=methods,
force=False,
on_progress=_on_progress,
)
logger.info("WF1 분석 엔진 완료: 모델 %d개 생성됨", len(analysis_result.get("models", [])))
@@ -229,6 +239,13 @@ async def trigger_wf1_analysis_and_email(
await connection.rollback()
raise
write_surface_progress(
project_root,
100,
"awaiting_confirmation",
"WF1 분석이 완료되었습니다. 사용할 모델을 확정하세요.",
)
logger.info(
"SEND_ANALYSIS_COMPLETION_EMAIL=%s, project_info=%s",
SEND_ANALYSIS_COMPLETION_EMAIL,