[Agent] Issue #684: container deployments may start before p #687

Open
pook wants to merge 63 commits from agent-task/684 into main
Owner

Closes #684

Changes

feat: issue #684 container-deployments-may-start-before-p (agent task liancebot684)

Acceptance Criteria

Container deployments may start before PostgreSQL is ready. Need retry logic to prevent crash-looping on DB connection failure during startup.

Implementation:

  1. In the database connection module, wrap initial connection in a retry loop:
    • Max 5 attempts with exponential backoff (1s, 2s, 4s, 8s, 16s)
    • Log each retry attempt with attempt number
    • On final failure, log error and exit with code 1
  2. Use existing database client — no new dependencies.
  3. Add test verifying retry behavior with mock client that fails N times then succeeds.

Acceptance: Server retries DB connection on startup failure. Test passes. No new dependencies.


Generated by CEO Planner (priority: 3)

Tokens: 0 in / 0 out

Closes #684 ## Changes feat: issue #684 container-deployments-may-start-before-p (agent task liancebot684) ## Acceptance Criteria Container deployments may start before PostgreSQL is ready. Need retry logic to prevent crash-looping on DB connection failure during startup. Implementation: 1. In the database connection module, wrap initial connection in a retry loop: - Max 5 attempts with exponential backoff (1s, 2s, 4s, 8s, 16s) - Log each retry attempt with attempt number - On final failure, log error and exit with code 1 2. Use existing database client — no new dependencies. 3. Add test verifying retry behavior with mock client that fails N times then succeeds. Acceptance: Server retries DB connection on startup failure. Test passes. No new dependencies. --- *Generated by CEO Planner (priority: 3)* Tokens: 0 in / 0 out
feat: issue #684 container-deployments-may-start-before-p (agent task liancebot684)
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
53d2902b58
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • bun.lock
  • package.json
  • packages/api/src/db/schema.ts
  • packages/api/src/index.ts
  • packages/api/src/middleware/csrf.ts
  • packages/api/src/middleware/rate-limit.ts
  • packages/api/src/middleware/security-headers.ts
  • packages/api/src/routes/admin.ts
  • packages/api/src/routes/billing.ts
  • packages/api/src/routes/generate-tos.ts
  • packages/api/src/routes/generate.ts
  • packages/api/src/routes/health.ts
  • packages/api/src/routes/questionnaire.ts
  • packages/api/src/services/document-generator.ts
  • packages/api/src/services/llm.ts
  • packages/api/src/templates/index.ts
  • packages/api/tsconfig.json
  • packages/shared/src/types.ts
  • packages/web/src/app/questionnaire/page.tsx
  • packages/web/src/components/documents/DocumentList.tsx
  • packages/web/src/components/questionnaire/ReviewStep.tsx
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent-task/684:agent-task/684
git switch agent-task/684
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot!687
No description provided.