feat(cloud-scheduler): reap expired leases

This commit is contained in:
2026-07-12 17:32:11 +08:00
parent e1af4403f5
commit c58d9e5316
3 changed files with 242 additions and 1 deletions
@@ -22,7 +22,7 @@
- [x] 3.3 Implement owning-host claim that atomically transitions one assigned attempt to dispatched under its active lease.
- [x] 3.4 Implement lease renewal with host/task/attempt ownership validation and conflict responses for stale leases.
- [x] 3.5 Implement idempotent terminal result recording and reservation release for active leases.
- [ ] 3.6 Implement expired-lease requeue/failure behavior with bounded attempts and preserved attempt history.
- [x] 3.6 Implement expired-lease requeue/failure behavior with bounded attempts and preserved attempt history.
- [ ] 3.7 Add PostgreSQL concurrency tests proving one assignment/claim winner and SQLite tests documenting single-control-plane behavior.
## 4. Authentication And Authorization