mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 23:39:34 +00:00
572 B
572 B
Webhook Retry + DLQ Strategy
Current Implementation
Webhooks from Moyasar land at /api/v1/webhooks/moyasar.
Retry Policy
- 3 retry attempts with exponential backoff (1s, 10s, 60s)
- After 3 failures: mark as dead-letter, alert via Sentry
DLQ Storage
Failed webhook events stored in DB table webhook_dlq:
- payload
- received_at
- attempts
- last_error
- status (pending|retrying|abandoned|replayed)
Replay Script
python scripts/replay_webhook.py --id <dlq_id>
Monitoring
- Alert if DLQ count > 5 in 1 hour
- Weekly DLQ cleanup review