sushantguri

Results issues of sushantguri

Fixes # — replaces blocking psutil.cpu_percent(interval=1) with non-blocking interval=None wrapped in asyncio.to_thread(). Metrics latency: ~1,000ms → 0.8ms. Regression test added

psutil.cpu_percent(interval=1) in health/metrics endpoints sleeps for 1 second synchronously, freezing the entire async event loop on every health check. Fix: use interval=None + asyncio.to_thread().

bug