fix(cloud-api): retry lifecycle iterations

This commit is contained in:
2026-07-12 18:31:19 +08:00
parent 937a4646e1
commit b8d02abf87
3 changed files with 76 additions and 6 deletions
@@ -45,7 +45,7 @@
- [x] 6.1 Compose repository, pool, scheduler, plugin registry, public router, internal router, and auth providers in the cloud app factory.
- [x] 6.2 Implement FastAPI lifespan startup/shutdown for configuration validation, database checks, scheduler loop, and lease-reaper loop.
- [ ] 6.3 Ensure lifecycle iteration failures are logged and retried without terminating later iterations.
- [x] 6.3 Ensure lifecycle iteration failures are logged and retried without terminating later iterations.
- [ ] 6.4 Add `/health/live` and `/health/ready` with separate process, database/schema, and worker-state semantics.
- [ ] 6.5 Add structured correlation-aware logging for requests and task lifecycle events with sensitive payload redaction.
- [ ] 6.6 Add app-level tests for startup failures, readiness transitions, graceful shutdown, persisted queue recovery, and expired-lease recovery.