start_diffusion_training is async but called _preflight_gated_base inline; it does a blocking urllib urlopen HEAD to Hugging Face (up to a 5s timeout) to detect a gated/unauthorized base repo. On a slow or unreachable network that stalled the FastAPI event loop, freezing every concurrent status/progress/cancel request until it returned or timed out. Wrap it in asyncio.to_thread, matching the dataset preflight and GPU cleanup just below it. Regression test asserts it runs off the coroutine thread. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_node_prebuilt.py | ||
| install_python_stack.py | ||
| install_sd_cpp_prebuilt.py | ||
| LICENSE.AGPL-3.0 | ||
| node_prebuilt_pins.json | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||