Skip to content

Add webhook retry queue with exponential backoff#275

Merged
davedumto merged 3 commits intodavedumto:mainfrom
chigozirim007:fix/webhook-retry-queue-254
Feb 26, 2026
Merged

Add webhook retry queue with exponential backoff#275
davedumto merged 3 commits intodavedumto:mainfrom
chigozirim007:fix/webhook-retry-queue-254

Conversation

@chigozirim007
Copy link
Contributor

Summary

  • Added durable webhook delivery queue via new WebhookDelivery model and migration.
  • Updated webhook dispatch flow to enqueue deliveries and attempt first send immediately.
  • Added queue processor with retry schedule: 1m, 5m, 30m, 2h, 6h (max 6 attempts total).
  • Added cron endpoint to process pending deliveries: GET /api/cron/process-webhooks guarded by CRON_SECRET.
  • Added developer APIs:
    • GET /api/routes-d/developers/webhooks/deliveries?webhookId={id}
    • POST /api/routes-d/developers/webhooks/deliveries/[id]/retry for manual retry.
  • Added �ercel.json cron schedule to process webhook queue every minute.

Notes

  • Could not run prisma generate in this environment due blocked network access to Prisma binaries.

px tsc --noEmit still fails on a pre-existing syntax error in components/DevModeBanner.tsx unrelated to this change.

Closes #254

@vercel
Copy link

vercel bot commented Feb 26, 2026

@chigozirim007 is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lance-pay Error Error Feb 26, 2026 0:36am

@vercel
Copy link

vercel bot commented Feb 26, 2026

Deployment failed with the following error:

Invalid vercel.json file provided

@davedumto davedumto merged commit cf1da95 into davedumto:main Feb 26, 2026
1 of 3 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.

Add webhook retry mechanism with exponential backoff

2 participants