Merged
Conversation
- RSS 폴링 시 멤버별 배치 URL 중복 체크 (IN query 1개로 변경)
- 기존: 피드 아이템별 개별 SELECT (~344개/cycle)
- 개선: 멤버당 1개 IN 쿼리 (29개/cycle)
- pino logger에 Error serializer 등록 (error: {} → 구조화된 출력)
- 에러 로깅 시 raw Error 객체 직접 전달 (스택 트레이스 보존)
Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
error: {}대신 구조화된 에러 출력Changes
packages/bot/src/services/post.service.tsgetExistingUrls()배치 메서드 추가 (IN쿼리)packages/bot/src/schedulers/rss-poller.tspollMember()에서 배치 필터링 적용, 에러 로깅 개선packages/bot/src/lib/logger.tserror/err키에pino.stdSerializers.err등록Design Decisions
postService.create()가드 유지error+err두 키 모두 serializer 등록Context
DATABASE_URL_DIRECT가 Supavisor pooler 주소 사용 (별도 env 수정 필요)Test Plan
totalNewItems가 실제 새 글 수만 표시되는지 확인error: { message, stack, type }구조로 출력되는지 확인DATABASE_URL_DIRECT를 직접 연결 URL로 변경 후 pg-boss 타임아웃 해소 확인🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com