feat(job-array-one-based-index): XCE_JOBINDEX is the element number (task 3.2)

The worker sets XCE_JOBINDEX to the element number for jobs carrying the
array marking (a one-element array's element gets 1) and to 0 otherwise.
A submission-supplied XCE_JOBINDEX is not applied and a WARN names the
job and the ignored variable; XCE_JOBID handling is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-10-01 10:34:59 +00:00
parent c60946c097
commit 7aa00f0d9d
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
4 changed files with 269 additions and 4 deletions

View file

@ -59,7 +59,7 @@
- _Boundary: SchedGuard_
- _Depends: 1.1_
- [ ] 3.2 (P) Expose the element number to running jobs
- [x] 3.2 (P) Expose the element number to running jobs
- Set `XCE_JOBINDEX` to the element number for jobs carrying the array marking and to 0 otherwise
- Skip a submission-supplied `XCE_JOBINDEX`, logging a WARN that names the job and the ignored variable; leave `XCE_JOBID` handling unchanged
- Add the worker test and register it in the worker test build