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
@@ -1721,6 +1721,12 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
- `RegistryTests.worker_cli_leases_publishes_and_reports_result` **passed** (506 ms), covering direct, single queue and continuous loop modes; the loop output contains the action key and `queue empty`.
|
||||
- Full CTest: **8 / 8 passed** in 294.19 s.
|
||||
|
||||
## Lease Renewal & Idle Timeout (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `POST /api/v1/actions/<key>/renew` extends a live lease when the token matches (403 otherwise, 409 when unleased), and `vbs worker --idle-timeout N` keeps watching an empty queue for N seconds (exit 0 afterwards); `--once` stops after one action.
|
||||
- `RegistryTests.worker_cli_leases_publishes_and_reports_result` **passed** (1.54 s): the idle worker ran for >= 900 ms, renewal succeeded, and a wrong token was rejected.
|
||||
- Full CTest: **8 / 8 passed** in 302.11 s.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
Reference in new issue
Block a user