**task-2057 완료 보고** **task-2057 완료 보고서** **핵심 결과** `knowledge_extractor_v2.py`의 체크포인트 저장 2개소에 `mkdir(parents=True, exist_ok=True)` + `try/except OSError` 에러 방어를 추가했다. 수정 후 동일 파일로 재현 테스트 시 crash 미발생, 체크포인트 파일(1.2MB) 정상 생성 확인. pytest 279건(kakao_knowledge) + 41건(dashboard) 전체 PASS. ## 수정 파일 ### workspace 레포 (worktree: task/task-2057-dev2) | 파일 | 변경 내용 | grep 검증 | 상태 | |------|-----------|-----------|------| | dashboard/tests/test_refine_api.py:30,37 | import 경로 수정 (server → server_utils) | grep "server_utils" → 30,37행 OK | verified | ### insuwiki 레포 (별도 git 레포, /home/jay/projects/insuwiki) | 파일 | 변경 내용 | grep 검증 | 상태 | |------|-----------|-----------|------| | scripts/kakao_knowledge/knowledge_extractor_v2.py:391-401 | 체크포인트1 저장 시 mkdir + try/except 추가 | grep "mkdir.*parents" → 393행 OK | verified | | scripts/kakao_knowledge/knowledge_ext **발견/해결 이슈 3건** 1. **체크포인트 저장 시 output_dir 미생성으로 FileNotFoundError** — `checkpoint_path.parent.mkdir(parents=True, exist_ok=True)` 추가 2. **체크포인트 저장 실패 시 프로세스 전체 crash** — `try/except OSError` 감싸기 + 경고 로그 추가 3. **test_refine_api.py의 잘못된 import 경로** — `from server import _is_process_alive` → `from server_utils import _is_process_alive`