mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1210] [CLOSED] populate '/models' also in lazy mode #3312
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1210
Author: @vehystrix
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:lazy-models-populate📝 Commits (1)
cff737epopulate '/models' also in lazy mode📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
serve/server.py(+1 -1)📄 Description
Currently starting the server in lazy mode (
--lazy) shows no models on the/modelsendpoint. It only gets populated as soon as the model actually gets loaded, and stays populated even when a model gets unloaded after.With this surgical fix, the endpoint is populated even before the first load:
StrataEngine; it already lists as loaded via the no-alive path - unchanged.MockEngine, is aStrataEngine-> listed as "unloaded".StrataEngine, same branch.alive()true ->svc.loaded()true -> falls through, listed as "loaded" - unchanged.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.