AntiPattern

Async Work Blocked By Sync IO

async-blocked-by-sync-io

Async FastAPI lifecycles and endpoints get broken when synchronous IO and non-awaited background tasks are used—blocking the event loop or running after request context teardown—so state commits, consumers, and shutdown persistence happen at the wrong time.