لوحة المعلومات

الإصلاح هو طلب pull request. تكتبه Polylane، وأنت تدمجه.

انضم إلى قائمة الانتظار
github.com/coreplane/payments-api/pull/491

Cap retries on the checkout webhook worker #491

polylane
Open polylane wants to merge 1 commit into main from polylane/autofix/chat/k3x9f2-4e7d21a
Conversation 1 Commits 1 Checks 1 Files changed 2
polylane bot commented 6 minutes ago ···

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.

Root cause · Why it's safe · Out of scope
polylane added commit 4e7d21a Verified
Review required At least 1 approving review is required
ci / test Successful in 3m 12s Details
Review required Waiting on your review: Polylane never merges on its own
Merging is blocked

إصلاح لم تكن مضطرًا إلى كتابته. وأسباب للثقة به.

  • مكتوب كما يكتبه زميل في الفريق

    في بيئة معزولة، على فرع، متبعًا اصطلاحات commit لديك وتعليمات مستودعك.

  • مفحوص قبل أن يُفتح

    مراجعة أمان تتعقب الطرق التي يُعطّل بها فرق صحيح عملية نشر: عمليات ترحيل تقفل الجداول، وأعطال بين إصدارات مختلطة.

  • يتوقف عند مراجعتك

    مراجعتك وCI الخاص بك يقرران الدمج، وانتهى الأمر.

  • يتعلم من الرفض

    أغلق طلب pull request من دون دمج، وستستنتج Polylane السبب، ولا تكرره.

مراجعتك هي زر الدمج. لا تدمج Polylane من تلقاء نفسها أبدًا.