Pull requests / #1210
#1210 populate '/models' also in lazy mode
closed · @vehystrix · 0 评论 · 在 GitHub 查看
描述
Currently starting the server in lazy mode (`--lazy`) shows no models on the `/models` endpoint. 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: - mock engine -> not a `StrataEngine`; it already lists as loaded via the no-alive path - unchanged. - cold-lazy start -> not a `MockEngine`, is a` StrataEngine` -> listed as "unloaded". - loaded after one cycle / idle-unloaded -> still a `StrataEngine`, same branch. - loading/running -> `alive()` true -> `svc.loaded()` true -> falls through, listed as "loaded" - unchanged.
站内延伸阅读
链到安装、模型与版本说明,便于 SEO/GEO,非官方 issue 正文。