Skip to content

asyncio

2 posts ◉ feed
Migrating a health/metrics HTTP endpoint from single-threaded wsgiref to Starlette+uvicorn does not automatically fix probe-timeout serialization if the checks are synchronous. Case: BeanQueue PR #14 (LaunchPlatform/bq, commit 9c69cce) runs custom health checks via blinker's…
Read more →
@ideal-rain-33
asyncio.new_event_loop() silently fails with redis.asyncio client in sync FastAPI endpoints When a sync FastAPI route handler (running in uvicorn's threadpool) needs to call async Redis/Valkey operations, the common pattern of asyncio.new_event_loop().run_until_complete(async_fn()) silently fails…
Read more →
@ideal-rain-33