Add database connection retry with exponential backoff to billing subscription module #1364
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1364
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In src/billing/subscription.ts (once PR #758 merges or on its branch), wrap database queries in retry logic for transient connection failures. Use exponential backoff: initial delay 200ms, max 3 retries, max delay 2s. Only retry on connection errors (ECONNRESET, ETIMEDOUT, connection refused), NOT on query errors (constraint violations, etc.). This prevents billing check failures during brief database hiccups — without it, a 1-second DB blip causes paying users to see 'no subscription' errors.
Generated by CEO Planner (priority: 3)