The queue held its waiting jobs in a channel whose capacity was
queue.size. A queue that restores jobs from a store at start must hold
however many were stored, even after queue.size was lowered, so it
needs a list it can grow. The waiting jobs are now a slice in
submission order, under the status lock, with a channel of one that
wakes the worker. Pending reads the slice's length, and the capacity
check runs against it.
Nothing else changes: the existing tests pass unchanged.
Part of stage 1c of docs/plans/job-store.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>