The fix arrives as a pull request. Polylane writes it, you merge it.
Join the waitlistCap retries on the checkout webhook worker #491
polylanemain from polylane/autofix/chat/k3x9f2-4e7d21a Retries on the checkout webhook worker were unbounded: a failing delivery re-queued itself forever and amplified load on payments-api. This caps delivery at 5 attempts with exponential backoff and dead-letters the payload after the last one.
What changed
worker/deliver.ts gains MAX_DELIVERY_ATTEMPTS = 5 and backoff between attempts; exhausted payloads land in checkout-webhooks-dlq instead of re-queueing.
Validation
npm test — 214 passed. A forced failing delivery stopped after 5 attempts and appeared in the dead-letter queue.
A fix you didn't have to write. And reasons to trust it.
-
Written like a teammate would
In a sandbox, on a branch, following your commit conventions and your repo's instructions.
-
Checked before it opens
A safety review hunts the ways a correct diff still breaks a deploy: locking migrations, mixed-version breaks.
-
Stops at your review
Your review and your CI decide the merge, full stop.
-
It learns from a no
Close the pull request unmerged and Polylane works out why, and doesn't repeat it.