myxce/.kiro/specs/job-array-single-wal-record
Rongsong Shen d38ca72e76 feat(job-array-single-wal-record): wire array submissions into handle_jobsubmit
Branches handle_jobsubmit() on array_size: ==1 continues through
today's exact unmodified single-job path; >1 routes through a new
handle_jobsubmit_array() helper that reuses jobsubmit_async_ctx_t
with pending=1 and calls task 2.1's persist_submit_job_array_async()
instead of looping N single-element appends. Range validation
(jobid_range_exists/inflight_range_try_add) unchanged, same order,
strictly before any WAL append, for both branches.

Retires two pre-existing tests whose premise (N independent
per-element WAL entries with mixed outcomes) is now structurally
impossible with one entry per array; restores array-scoped
job-non-existence coverage for the failed-commit case that an
earlier draft of this change had dropped (Req 2.2/9.2).

Task 2.2 of job-array-single-wal-record.
2026-07-14 10:32:59 +00:00
..
brief.md docs: promote raft-apply-decoupling spec family from /kiro-discovery 2026-07-03 02:41:11 +00:00
requirements.md spec(job-array-single-wal-record): scaffold requirements 2026-07-12 04:25:50 +00:00
spec.json spec(job-array-single-wal-record): scaffold requirements 2026-07-12 04:25:50 +00:00
tasks.md feat(job-array-single-wal-record): wire array submissions into handle_jobsubmit 2026-07-14 10:32:59 +00:00