myxce/src/frontend/xcecli/common
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
..
format improve frontend jobid display 2026-05-07 02:36:24 +00:00
output fix(frontend): count host job-state columns and EXEC_HOST by real slots 2026-09-07 07:32:00 +00:00
request fix(xcecli): friendly message for connection-refused instead of raw OS error (bug-1675, gitea #42) 2026-08-24 14:23:25 +00:00
utils Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00