feat(worker): renew leases and watch an idle queue
This commit is contained in:
1 parent
8dac19c3ea
commit
55bc0529b9
8 files changed
+152
-17
No files matched your search
@@ -348,6 +348,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 127 (Continuous Worker Loop)**: `vbs worker --queue` now loops - lease, process, repeat - exiting when the queue is empty (or after one action with `--once`). In loop mode the record is exported from the local state store (`--record` is optional), transient lease failures are retried three times, and actions that are not built locally are skipped with a warning. The worker E2E exercises the loop and asserts the `queue empty` exit.
|
||||
|
||||
- **Wave 128 (Lease Renewal & Idle-Timeout Watcher)**: the registry gained `POST /api/v1/actions/<key>/renew` (token-checked lease extension, bounded TTL, audited) and `Package::renew_action_lease`. `vbs worker --queue` accepts `--idle-timeout SECONDS` to keep watching an empty queue before exiting, and `--once` now limits the loop to one action. The worker E2E asserts the idle wait, renewal success, and wrong-token rejection.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
Reference in new issue
Block a user