Repository navigation
fix(webhooks): skip duplicate webhook deliveries already in progress instead of polling - #8712
Conversation
…lling claim lease
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
…e not bounded by the route
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
… of overloading on policy
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
duplicateno-op and releases its reservation through the existing not-started pathexecuteOrSkipInProgressto the idempotency service (separate method, discriminatedresolved | in-progressresult) instead of an option, so a skipped duplicate can never be mistaken for anundefinedresult.executeWithIdempotencyis unchanged for every other caller — Stripe billing webhooks and the polling triggers keep waiting (Stripe must not 2xx before the first attempt settles; polling counts gate cursor advancement)Type of Change
Testing
duplicatewithout preprocessing/requeue and releases the slot once. A wait-path test guards that the default still waits (goes red if the default flips to skip)bun run --cwd apps/sim teston idempotency, webhook-execution, and polling suitesbun run lint,bun run type-check,bun run check:audits— greenChecklist
test-auditauthoring gate)