Skip to content

fix(server): snapshot model info under the idle lock - #2186

Merged
ashhart merged 1 commit into
mainfrom
lead/s243-r14
Nov 5, 2026
Merged

ashhart merged 1 commit into
mainfrom
lead/s243-r14

Conversation

@ashhart

@ashhart ashhart commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Read model discovery info under the idle manager lock

/v1/models now takes one engine-info snapshot through readInfo when idle unload is enabled and uses it for every alias (#2139). This prevents reading info while reload publishes it; ordinary discovery and request admission are unchanged.

A controlled actual HTTP-route test reproduces the unlocked read on main, using the real mutex without timing races or device execution. All 59 focused host tests pass after the fix, including idle lifecycle tests. No GPU or generation arithmetic changes.

@ashhart
ashhart force-pushed the lead/s243-r14 branch 2 times, most recently from 4305e08 to ae739ae Compare November 5, 2026 03:58
@ashhart
ashhart merged commit f4f0901 into main Nov 5, 2026
2 of 7 checks passed
@ashhart
ashhart deleted the lead/s243-r14 branch November 10, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant