Commit Graph
1 Commits
Author SHA1 Message Date
Andy Warren e873cd6837 fix: run Frigate+ API calls in thread pool to prevent event loop blocking
The send_to_plus and set_false_positive handlers are async but call
synchronous PlusApi methods (which use the requests library) directly,
blocking the asyncio event loop for 10-16 seconds during image upload.
This stalls all other HTTP requests to Frigate.

Wrap upload_image, add_annotation, and add_false_positive calls in
asyncio.to_thread() so they run in a thread pool without blocking.

Fixes #16566
2026-03-13 15:28:31 -05:00