feat(job-array-one-based-index): clamp the apiserver array size limit (task 5.2)

job.max_array_size is resolved by a pure resolveMaxArraySize: unset or 0
gives 1000, 1..32767 is used as is, values above 32767 are clamped to
32767 with a startup warning naming the configured and effective value,
and a negative value refuses startup. The old >2147483646 rejection is
gone; the shipped config documents the bounds.

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

View file

@ -68,7 +68,7 @@ file_upload:
- "application/javascript" # .js file
job:
max_array_size: 1000 # default max array size for job submission
max_array_size: 1000 # max elements per job array (default 1000 if unset or 0, at most 32767; larger values are clamped to 32767 with a startup warning; negative refuses startup)
cache:
refresh_interval: 30 # seconds, available values: 1-300