mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-10-25 08:10:55 +00:00
ListContainerDir was the only consumer of pkg/queue and discarded its ordered delivery (the caller dedups and re-sorts). Replace the fan-out with a small errgroup helper — SetLimit keeps the same 20-way bound on concurrent stats against the Docker daemon, the caller's context propagates into each call, results stay in input order, and the lowest-index failure is surfaced deterministically — then delete pkg/queue. The helper was verified byte- identical to the previous queue implementation across 600 randomized directory shapes (sizes, failure positions, out-of-order completion) before removal. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>