fix: 나노 검증 — health URL/response polling/startup 상태변경 3건 수정

1. health_check: /../health → /health (URL 해석 오류)
2. response polling: startup pending 제외 (불필요한 HTTP 요청 방지)
3. startup pending 상태변경: pending→skip, auto_resolved/expired→forward
This commit is contained in:
Variet Worker
2026-03-11 23:01:24 +09:00
parent 1bf41ceee3
commit d7ed454332
2 changed files with 9 additions and 3 deletions

View File

@@ -113,8 +113,12 @@ class CollectorBridge:
continue # No change
is_new = rid not in self._forwarded_pending
if is_new and rid in self._startup_pending:
continue # Skip pre-existing files from before startup
if rid in self._startup_pending:
# Startup files: only forward status CHANGES (not re-forward as new pending)
status = data.get("status", "pending")
if status == "pending":
continue # Still pending from before startup — skip
# Status changed (auto_resolved/expired) — forward the update
# Forward to Gateway (new or updated)
await self.remote.awrite_json("pending", fname, data)
@@ -146,6 +150,8 @@ class CollectorBridge:
try:
# Check each forwarded pending for a response
for rid in list(self._forwarded_pending):
if rid in self._startup_pending:
continue # Don't poll responses for pre-startup files
data = await self.remote.aread_json("response", f"{rid}.json")
if data is None or data.get("waiting"):
continue