An async endpoint freezes during OCR. Why?
Practice this question- The OCR library may be synchronous or CPU-heavy, so it blocks the event loop.
- I offload suitable work to threads/processes or queued workers and keep the HTTP boundary responsive with durable job status.
Adapted from 13_AI.MD · “29.18 Python”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.