fix: /api/health degraded 시 HTTP 503 반환 (#14) #40
No reviewers
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-14-health-503"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DB 테이블 조회가 하나라도 실패하면
status=degraded+ HTTP 503. Docker healthcheck(curl -fsS) 와 로드밸런서가 비정상 상태를 감지할 수 있게 된다.routers/system.py::health에Response의존성으로 503 세팅status→health_status리네임 (FastAPI status 모듈 섀도잉 방지)responses에 503 명시Test plan
curl -fsS) 는 5xx 를 실패로 인식 → 컨테이너 unhealthy 마킹Closes #14