bytelyst-devops-tools/agent-queue/lib
saravanakumardb1 14308fc382 fix(agent-queue): explicit-engine availability check, shutdown lease release, cache GC
Three runner-side robustness fixes (behavior-preserving, opt-out where relevant):

- resolve_engine now availability-checks an EXPLICIT engine (mirroring the
  engine-class path): if the requested engine's binary isn't installed it emits
  the no-engine signal so the job is marked no_engine, instead of invoking a
  missing binary and surfacing a generic crash.
- The run-loop INT/TERM trap now best-effort releases leases for in-flight
  building/ jobs (new fleet_release_all_active) so a stopped factory's jobs are
  reclaimable immediately rather than waiting out the ~900s lease TTL.
- _cache_prune GCs cached repo checkouts under $STATE/repos not accessed in
  AQ_FLEET_CACHE_TTL_DAYS days (default 14; 0 disables), run once at run-loop
  startup, to stop unbounded disk growth. Guards against rm on an empty base path.

bash -n passes on both files; ./selftest.sh PASS.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-06-01 11:51:56 -07:00
..
fleet-client.sh fix(agent-queue): explicit-engine availability check, shutdown lease release, cache GC 2026-06-01 11:51:56 -07:00
fleet-dash.mjs feat(agent-queue): re-point TUI dashboard at /fleet API (parity) 2026-05-30 19:47:56 -07:00
fleet-dash.test.mjs feat(agent-queue): re-point TUI dashboard at /fleet API (parity) 2026-05-30 19:47:56 -07:00