You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Persist attempts, bound PSP timeouts and recover unknown outcomes #102
Provider calls occur inside database transactions. A PSP can accept a request before the process crashes or the DB transaction rolls back, leaving an unknown outcome. Slow provider calls can also hold database connections for a long time.
Scope
Proposed scope: Persist a stable attempt ID before the PSP call; separate short DB transactions from network work; configure bounded HTTP connect/read timeouts for Stripe and PayPal (Stripe currently defaults to ~80s read timeout, PayPal has no explicit timeouts); define reconciliation and PSP idempotency.
Acceptance criteria
Crash/timeout after a PSP side effect, DB rollback and restart neither lose the attempt nor cause another charge; a slow PSP fails within the configured timeout without exhausting DB/HTTP pools.
Questions to resolve
Which attempt identifier survives restarts and is used for PSP idempotency? How are unknown results reconciled before any retry?
Activity