From bcd357c5314a631c5e453429f1bbb9d4d934b56a Mon Sep 17 00:00:00 2001 From: Rongsong Shen Date: Thu, 1 Oct 2026 13:18:15 +0000 Subject: [PATCH] docs(job-array-one-based-index): GenerateJobID allocates ordinary IDs only The comment still described arraySize > 1 as the array path; since task 9.1 idgen() rejects any size other than 1 and arrays use GenerateArrayJobID. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/frontend/apiserver/backend/clib.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/apiserver/backend/clib.go b/src/frontend/apiserver/backend/clib.go index cbf902d2..50b1265b 100644 --- a/src/frontend/apiserver/backend/clib.go +++ b/src/frontend/apiserver/backend/clib.go @@ -332,9 +332,10 @@ func initIDGen() { C.idgen_ctx_init(&gIDCtx) } -// GenerateJobID calls the C idgen() to produce a unique job ID. -// clusterID and apiserverID identify the originating instance; -// arraySize=1 for normal jobs, >1 for array jobs. +// GenerateJobID calls the C idgen() to produce a unique ordinary job ID. +// clusterID and apiserverID identify the originating instance. arraySize +// must be 1: idgen() allocates ordinary IDs only and returns -EINVAL for +// any other size; array IDs come from GenerateArrayJobID. func GenerateJobID(clusterID, apiserverID int, arraySize int) (uint64, error) { idCtxOnce.Do(initIDGen) var jobID C.uint64_t