myxce/src/frontend/xcecli
Rongsong Shen e395eaa3ad
fix(frontend): count host job-state columns and EXEC_HOST by real slots
NJOBS/RUN/SSUSP/USUSP (xcecli hosts list -l) and EXEC_HOST (xcecli jobs
list) always showed a hardcoded 1 slot per host regardless of a job's
actual per-host allocation -- rawJobToModel()'s ExecHosts JSONB builder
never read the real per-host "slots" resource from the C job allocation,
so the already-correct downstream slot-counting logic (computeHostSlotUsage,
bug-1743) and EXEC_HOST's "N*host" formatter never had real data to work
with. convert.go now extracts each host's real slots allocation via a new
CGO indexing helper, mirroring the scheduler's own get_nslots_in_alloc()
convention.

Also wires hosts list -l's "CURRENT LOAD USED FOR SCHEDULING" table (tmp/
swap/mem/slots and friends) to the host's real live resource values --
previously entirely hardcoded placeholder strings, never connected to any
backend data.
2026-09-07 07:32:00 +00:00
..
cmd feat(eliminate-frontend-makefile): task 3.4 - update source code comments 2026-09-03 14:34:48 +00:00
common fix(frontend): count host job-state columns and EXEC_HOST by real slots 2026-09-07 07:32:00 +00:00
config fix(scheduler,cli): bug-1453/1454/1455/1456 remove dead CA-cert plumbing, fix scheduler HA config bugs 2026-07-20 12:01:10 +00:00
filters improve frontend jobid display 2026-05-07 02:36:24 +00:00
models fix(frontend): count host job-state columns and EXEC_HOST by real slots 2026-09-07 07:32:00 +00:00
router feat(build-time-versioning): xcecli --version via Cobra rootCmd.Version 2026-08-20 14:07:38 +00:00
test Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
vendor build: make Go and Python builds fully offline (hermetic Nix build) 2026-09-03 12:38:49 +08:00
go.mod Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
go.sum Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
meson.build feat(dirty-content-fingerprint): apiserver/xcecli meson pass fingerprint to go_build 2026-08-21 06:21:21 +00:00