Dispatch batch job summary reporting negative values #10222
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/batch
Issues related to batch jobs and scheduling
theme/job-summary
type/bug
Nomad version
Operating system and Environment details
MacOS 10.15.7
Issue
When using parameterized batch jobs, the job summary returned by
/v1/job/<job>summary
miscounts the number of running children, keeping it always at 0.This results in negative values for
Running
when the dispatched job finishes.The problem doesn't happen in Nomad v1.0.3 and
git bisect
shows that the problem started in this commit: 85129bbReproduction steps
Expected Result
In step 4 there should've been 1 job running, and 0 in step 5.
Actual Result
0 children running in step 4 and -1 in step 5.
Job file
The text was updated successfully, but these errors were encountered: