86fe35e671
add kiro skills
2026-05-21 03:41:57 +00:00
a07a74a943
Merge branch 'persistent_ha' into scheduler
2026-05-12 10:52:46 +00:00
475ed20bba
use fmt_jobid() when job submission
2026-05-12 10:52:28 +00:00
ce2edf0dac
refactor: represent time fields as int64 Unix seconds throughout the stack
...
Collapses a four-step conversion chain (time_t → int64 → time.Time →
RFC3339 string → string → time.Time) to a direct int64 pass-through:
C time_t → rawJobData int64 → JobInfo int64 → JSON integer → QueryJob int64 → time.Unix() for display
Changes:
- apiserver/models/jobs.go: SubmitTime, QueueTime, StartTime, EndTime,
ReserveTime in JobInfo and JobAdditionalFields: time.Time → int64
- apiserver/models/common.go: ActionControl.SubmitTime: time.Time → int64
- backend/convert_pure.go: remove time.Unix() calls; assign int64 directly
- backend/convert_test.go: update time assertions to compare int64 values
- xcecli/models/jobs.go: SubmitTime, StartTime, EndTime, ReserveTime in
QueryJob: string/time.Time → int64; remove time import
- xcecli/common/output/time.go: replace parseJobTime(string) with
unixToTime(int64) and fmtUnixTime(int64) helpers
- xcecli/common/output/page_print_jobs.go: replace parseJobTime() calls
with unixToTime()/fmtUnixTime(); remove !startTime.IsZero() guard
(unixToTime returns false for ts<=0, making it redundant)
- xcecli/common/output/page_print_array_elements_jobs.go: replace
string-split+time.Parse submit-time block with fmtUnixTime(); remove
unused time import
Side effect: eliminates the "0001-01-01T00:00:00Z" zero-time
serialization issue at the source — zero timestamps are now 0 (integer)
and unixToTime/fmtUnixTime return false/"-" for ts<=0 without special-
casing needed in callers.
2026-05-09 07:00:49 +00:00
a2476d0176
fix: xcecli jobs list -l — hide spurious start line and show pending reason
...
Three fixes:
1. ExecHosts.UnmarshalJSON: JSON null (sent when no allocation exists)
was treated as a non-"-" string because json.Unmarshal(null, &str)
returns nil with str="". This created a phantom HostSlot{NumSlots:1,
HostName:""} producing "<1*>" for every PEND job. Now null and ""
are both treated as empty hosts.
2. page_print_jobs.go: added !startTime.IsZero() guard so a zero
timestamp ("0001-01-01T00:00:00Z") never produces a start line
even if the status check is bypassed.
3. Added PENDING_REASON field to JobFieldsMap so it is requested from
the API when -l is passed, and rendered in printJobsVerboseOutput
for PEND/PSUSP jobs before the start-time section.
2026-05-09 05:15:31 +00:00
af578c29ca
fix show exec host for pend jobs
2026-05-09 04:09:16 +00:00
d6008ead99
improve frontend jobid display
2026-05-07 02:36:24 +00:00
960ef62342
fix job array display issue
2026-04-14 18:23:49 +08:00
c9dc8c4676
Merge Go frontend (apiserver + xcecli) into meson build
2026-04-14 11:23:18 +08:00