Skip to content

fix: AI↔BE 계약 통일 및 성능 최적화 #35

Description

@tomchaccom

수정 항목

1. headcount 타입 통일 (int → str)

  • job_dto.py JobPostingBase.headcount: Optional[int]Optional[str]
  • 실제 채용공고 스크래핑 시 '00명 내외', '0명 이상' 등 문자열로 추출됨

2. Sync 서비스 호출 Async 처리

  • FastAPI async 엔드포인트에서 sync 서비스를 직접 호출 중 → event loop blocking
  • router.py 서비스 호출부를 asyncio.to_thread()로 래핑

3. pytest 테스트 추가

  • 스키마 파싱 검증 (headcount, ExperienceSummary 등)
  • 핵심 로직 단위 테스트

관련 파일

  • app/schemas/job_dto.py
  • app/api/router.py
  • app/api/experience_extraction_v2.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions