The /api/update-check endpoint is async but fetch_and_cache_update_status performs a blocking HTTP request via urllib. Wrap it in asyncio.to_thread to avoid blocking the FastAPI event loop when the background thread has not yet completed the initial fetch. |
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||