Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
오류를 격리하면서 메시지만 출력해, 기존 raise 대비 로그에서 원인 파악에 필요한 스택트레이스가 사라졌다. traceback.print_exc() 로 함께 남긴다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
article.py메인 루프에서 게시판별 처리를 개별 try/except로 감쌌습니다.connection.rollback()후 다음 게시판으로 넘어가도록 변경했습니다 (기존에는 전체 루프가 중단됨).문제 원인
메인 루프(
for board in _boards:)가 게시판별 처리를 감싸는 예외 처리 없이 순서대로 실행되어, 한 게시판에서 예외가 발생하면(원인 불문) 이후 순서의 게시판은 이번 실행에서 처리되지 않았습니다.boards리스트 순서가[일반공지, 장학공지, 취업공지, 학사공지, 현장실습공지, 학생생활]이고run.sh가 이를 3개씩 두 세그먼트(article.py 1,article.py 2)로 나눠 실행하므로, 세그먼트 1에서 앞쪽 게시판이 실패하면 취업공지(board_id=8)까지 영향을 받는 구조였습니다. #191(is_delete오타)이 정확히 이 패턴으로 발생했던 사례이고, 오타 자체는 고쳐졌지만 "한 게시판 실패가 이후 게시판을 막는" 구조적 문제는 남아있었습니다.확인 사항
py_compile) 통과참고 사항
crawling/koreatech_article/run.sh가article.py를 백그라운드(&)로 실행하고 종료 코드를 확인하지 않아, 오류를 격리해도 종료 코드로 얻던 실패 신호는 잃지 않습니다. 대신 기존raise가 남기던 스택트레이스가 사라지지 않도록traceback.print_exc()를 함께 남깁니다.created_at최대 2024-10-26). 다만updated_at은 2026-08-04, 08-05, 09-23에 갱신된 흔적이 있어, 배치가 안 도는 것인지 돌지만 새 글을 못 넣는 것인지는 구분되지 않습니다. 서버의logs/output1.log(취업공지는 세그먼트 1) 확인이 필요합니다.id DESC) 문제였고, KOIN_API_V2#2459(PR #2460)에서 다룹니다.close #196