mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
The PostgreSQL store carried its own copy of the delayed blob removal. Its timer was never stopped, it ran under context.Background(), and the 30 second bound was a bare number. Replace blob.RemoveLater with blob.Sweep. The reference check may now return a release func, so the PostgreSQL check can keep the revision lock until the last removal. A Life context ends pending removals, and SweepTimeout names the bound. Both stores cancel Life on Close, and the application now closes the PostgreSQL store with the JSON one. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>