From 55895c3eaf333c8929fdacfa726575e75dffd3ea Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 7 Sep 2026 09:11:43 +0900 Subject: [PATCH] =?UTF-8?q?build:=20watchfiles=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=E2=80=94=20=EC=9E=90=EB=8F=99=20=EB=A6=AC=EB=A1=9C=EB=93=9C?= =?UTF-8?q?=EB=A5=BC=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=B0=A9=EC=8B=9D?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사용자 승인(2026-09-07). 없으면 우버콘이 StatReload 로 떨어져 0.25초마다 감시 폴더를 통째로 훑고, 그러면 요청이 없어도 CPU 를 먹음. 실측 (놀고 있는 서버) — 감시 폴더를 좁히기 전 **70%** → 좁힌 뒤 **18%** → 이 패키지 설치 뒤 **0%**. 기동 로그가 `Started reloader process [...] using WatchFiles` 로 바뀜. 보조 창(8001)도 같은 값 확인 — 리로더 0% · 서버 0%. Co-Authored-By: Claude Opus 5 (1M context) --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index 741d7fc7..b185b994 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,6 +53,10 @@ trimesh==4.12.2 typing_extensions==4.16.0 tzdata==2026.2 uvicorn==0.24.0 +# 자동 리로드를 **이벤트 방식**으로 바꾼다(2026-09-07 사용자 승인). 없으면 우버콘이 +# StatReload 로 떨어져 0.25초마다 폴더를 통째로 훑고, 그러면 요청이 없어도 CPU 를 먹는다 +# (실측: 감시 폴더를 좁히기 전 70%, 좁힌 뒤 18%, 이 패키지 설치 뒤 0%대). +watchfiles==1.2.0 wheel==0.47.0 whitebox==2.3.6 pytest>=8