Skip to content

Retry Loops rate limits - #6460

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/loops-rate-limit-retries
Aug 3, 2026
Merged

Retry Loops rate limits#6460
ComputelessComputer merged 1 commit into
mainfrom
fix/loops-rate-limit-retries

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Loops allows 10 API requests per second. Retry 429 responses with bounded backoff in both web and Stripe senders so lifecycle batches complete cleanly without duplicate mail.


Note

Low Risk
Bounded retries on external email API calls with unchanged success/error semantics and idempotency headers; no auth or data-model changes.

Overview
Adds automatic retry for Loops HTTP 429 responses in both the Stripe and web Loops senders, so lifecycle/transactional batches can finish when the API hits its ~10 req/s limit without manual reruns.

Each sender now loops up to 3 retries after a 429, waiting from the Retry-After header (default 1s, capped at 5s) while reusing the same POST payload and Idempotency-Key. 200 and 409 (already processed) still exit successfully; other errors behave as before.

Tests assert a 429 followed by success results in two requests.

Reviewed by Cursor Bugbot for commit cc88f61. Bugbot is set up for automated code reviews on this repo. Configure here.

Back off and retry 429 responses in web and Stripe delivery paths.
@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for old-char ready!

Name Link
🔨 Latest commit cc88f61
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a706ea67840e6000810247c
😎 Deploy Preview https://deploy-preview-6460--old-char.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ComputelessComputer
ComputelessComputer merged commit 67bb72e into main Aug 3, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant