OnHostConfigUpdated only applied config-sourced fields (MaxSlot, HostModel, HostType, DisptWindow) onto a host whose name exact-matched an entry already in the store. hosts.yaml commonly defines only a wildcard "default" entry, so a dynamically-joined worker never received its own config push and MaxSlot stayed at Go's zero-value forever -- decoupled from the C-side scheduling path, which already resolves the real value via worker.c's wildcard fallback. The "default" pseudo-host's config is now cached and retroactively backfilled onto any registered host with no explicit config of its own, in either arrival order (config-before-worker or worker-before-config). The -1 HOSTCONFIG_MXJ_AUTO_DETECT sentinel (bug-1556) is resolved to the host's real NumCPUs when applied via fallback, mirroring worker.c's own resolution, so the display shows usable capacity rather than a bare -1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AgYRU3zDTqNGV5Jk8aiKLg |
||
|---|---|---|
| .. | ||
| backend | ||
| cmd | ||
| common | ||
| config | ||
| controllers | ||
| docs | ||
| middleware | ||
| models | ||
| router | ||
| services | ||
| store | ||
| tools/encrypt | ||
| utils | ||
| go.mod | ||
| go.sum | ||
| meson.build | ||
| README.md | ||
(1) run server command:
cd cmd go run main.go
(2) run server with different log level: cd cmd go run main.go -level=debug
level options: info/debug/warn/error/fatal