Repository navigation
[fix] 프레임 최소 간격을 이전 프레임 시작 시각부터 세기 - #263
Merged
Merged
Conversation
minwoo-3
requested review from
Fresh-Banana,
Ims2oha and
kimseongchan0914
as code owners
October 28, 2026 09:21
wook10
approved these changes
Oct 28, 2026
4 tasks
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.
✨ 작업 내용
face_recognition_session.last_frame_started_at컬럼을 추가했습니다(V22, NULL 허용).last_frame_started_at이 NULL이거나now - 간격이전일 때만 잡고, 시작 시각과 활동 시각을 같이 갱신합니다. release는 지금처럼 활동 시각만 갱신합니다.last_frame_started_at이 NULL이라 바로 받습니다. 세션 생성 때 활동 시각을now - 간격으로 당겨 두던 우회는 없앴습니다.🔍 리뷰 시 참고사항
웹은 프레임 간격을 250
300ms로 줄이고 전송 시작 시점 기준으로 간격을 두려고 합니다. 이전 기준에서는 다음 계산 때문에 처리 시간이 50100ms만 넘어도 429가 납니다.#262 질문 답변:
UNKNOWN입니다.OTHER_FLOOR는 더 이상 보내지 않습니다(main 반영됨).FACE_FRAME_RATE_LIMITED이고Retry-After는 없습니다. 서버 전체 동시 처리 한도(FACE_MAX_CONCURRENT_FRAMES, 기본 4)를 넘으면 429FACE_SERVICE_BUSY이고, 이것도Retry-After가 없습니다. 둘 다 그 요청만 거절하고 세션은 끊지 않습니다. 세션은 5분 동안 프레임이 없을 때, 그리고 AI 5xx·404 오류일 때 닫힙니다.FACE_SERVICE_BUSY가 날 수 있습니다. AI가 프로세스 하나 CPU로 250ms마다 3대를 따라가는지는 측정하지 않았습니다.num_faces=8)이라 응답faces도 최대 8개입니다.검사: 로컬 PostgreSQL(compose)과 CI와 같은 테스트 env로
./gradlew build를 실행해 통과했습니다. 실제 AI 서버·카메라로 간격을 측정하지는 않았습니다.✅ 체크리스트
.env.example등) 변경이 필요한 경우 작성 또는 수정했나요?📎 관련 이슈(선택)