Skip to content

feat(browser): 지역별 수집의 단계별 진행·경과 시간 INFO 로그 - #23

Merged
digitie merged 1 commit into
mainfrom
feat/browser-progress-logging
Oct 22, 2026
Merged

digitie merged 1 commit into
mainfrom
feat/browser-progress-logging

Conversation

@digitie

@digitie digitie commented Oct 22, 2026

Copy link
Copy Markdown
Owner

요약

OpinetBrowserCollector.collect_page가 단계별 진행과 경과 시간을 INFO 로그로 남긴다.

  • 지역 탐색: 시도별 진행(done=i/N, 시군구 수, 누적 지역 수)과 완료(지역·조회 지역 수)
  • 탭(주유소/충전소) 시작·끝, 탭 안의 시도 단위 진행(done=i/N, 누적 주유소, 재시도 수)
  • 탭·전체 경과 시간, 수집 완료 요약

배경: odroid(ARM, CPU 포화)에서 전체 수집이 약 1.7시간 걸리고 kor-travel-transport의 2시간 상한 근처에서
시간 초과가 반복됐는데 어디서 시간이 드는지 볼 수 없었다. 지역 식별자는 기존 진단과 같은 _region_label
정제를 따른다. 로그 양은 수집당 약 60줄.

검증

  • n150 임시 컨테이너(python 3.11): mypy 통과, pytest -m "not live" --cov=opinet --cov-fail-under=90 276 passed / 1 skipped, coverage 93.61%
  • 새 테스트: 시도 경계·마지막 지역에서 진행 줄, 탭 시작/끝, 탐색 진행

🤖 Generated with Claude Code

https://claude.ai/code/session_01RuoPRjkdpZNYjTZ1RYQoHj

odroid(ARM, CPU 포화)에서 전체 수집이 약 1.7시간 걸리고 상한 근처에서 시간 초과가 나는데
어느 단계에서 시간이 드는지 볼 수 없었다. collect_page가 지역 탐색(시도별 진행·완료),
탭 시작·끝, 탭 안의 시도 단위 진행(done=i/N, 누적 주유소 수, 재시도 수)과 탭·전체 경과
시간을 INFO로 남긴다. 지역 식별자는 기존 진단과 같은 _region_label 정제를 따른다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RuoPRjkdpZNYjTZ1RYQoHj
@digitie
digitie merged commit 8846b28 into main Oct 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant