Il fix è una pull request. Polylane la scrive, tu la unisci.
Iscriviti alla lista d'attesaCap 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.
Un fix che non hai dovuto scrivere. E motivi per fidarti.
-
Scritto come farebbe un collega
In una sandbox, su un branch, seguendo le tue convenzioni di commit e le istruzioni del tuo repository.
-
Controllato prima di aprirsi
Una review di sicurezza cerca i modi in cui un diff corretto rompe comunque un deploy: migrazioni che bloccano, rotture tra versioni miste.
-
Si ferma alla tua review
La tua review e la tua CI decidono il merge, punto.
-
Impara da un no
Chiudi la pull request senza unirla e Polylane capisce perché, e non lo ripete.