fix(model): make backend shutdown model-scoped#10865
Conversation
Avoid holding the global loader lock across backend lifecycle waits and propagate forced shutdown through distributed workers. Track parallel requests with in-flight counters and reserve worker ports until process termination. Add focused race tests and an authoritative FizzBee lifecycle model with a fail-closed conformance target. Assisted-by: Codex:GPT-5 [FizzBee] [Ginkgo] Signed-off-by: Richard Palethorpe <io@richiejp.com>
|
Did a deep review of this (including running the touched suites locally with Two concrete issues in the worker supervisor before this merges, both small:
Smaller notes, none blocking:
CI is green across the board. cc @mudler: core design is sound, recommend merging once the two supervisor guards above are in. @richiejp happy to re-review quickly after the update. |
Description
This should prevent deadlocking the model loader when a backend instance is refusing to stop or not responding. Also throw FizzBee at it because it's a distributed system sort of.
Notes for Reviewers
Avoid holding the global loader lock across backend lifecycle waits and propagate forced shutdown through distributed workers. Track parallel requests with in-flight counters and reserve worker ports until process termination.
Add focused race tests and an authoritative FizzBee lifecycle model with a fail-closed conformance target.
Assisted-by: Codex:GPT-5 [FizzBee] [Ginkgo]
Signed-off-by: Richard Palethorpe io@richiejp.com
Signed commits