LocalAI/core
LocalAI [bot] 9e1b0d0c82
fix: Add timeout-based wait for model deletion completion (#8756)
* fix: Add timeout-based wait for model deletion completion

- Replace simple polling loop with context-based timeout (5 minutes)
- Use select statement for cleaner timeout handling
- Added proper logging for timeout case
- This addresses the code review comment about using context with timeout instead of dangerous polling approach

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

* fix: replace goto statements with break in model deletion loop (fixes CI compilation error)

Signed-off-by: LocalAI [bot] <localai-bot@noreply.github.com>

* Apply suggestion from @mudler

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

---------

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
Signed-off-by: LocalAI [bot] <localai-bot@noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: LocalAI [bot] <localai-bot@noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2026-03-06 01:07:15 +01:00
..
application feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
backend feat: pass-by metadata to predict options (#8795) 2026-03-05 22:50:10 +01:00
cli feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
clients feat(store): add Golang client (#1977) 2024-04-16 15:54:14 +02:00
config fix: Add vllm-omni backend to video generation model detection (#8659) (#8781) 2026-03-05 01:04:47 +01:00
dependencies_manager feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
explorer chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
gallery fix(gallery): clean up partially downloaded backend on installation failure (#8679) 2026-02-28 13:10:53 +01:00
http fix: Add timeout-based wait for model deletion completion (#8756) 2026-03-06 01:07:15 +01:00
p2p chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
schema feat(ui): add model size estimation (#8684) 2026-02-28 23:03:47 +01:00
services fix(gallery): Use YAML v3 to avoid merging maps with incompatible keys (#8580) 2026-02-16 14:10:19 +01:00
startup feat(api): Add transcribe response format request parameter & adjust STT backends (#8318) 2026-02-01 17:33:17 +01:00
templates chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
trace feat(traces): Add backend traces (#8609) 2026-02-20 23:47:33 +01:00