Fix webhook dispatch throttle + split queue/list config

This commit is contained in:
Abhimanyu Saharan
2026-02-14 17:58:50 +00:00
parent 4557fcc8ae
commit ad6ff33d16
7 changed files with 59 additions and 11 deletions

View File

@@ -21,7 +21,17 @@ CLERK_LEEWAY=10.0
DB_AUTO_MIGRATE=false
# Webhook queue / worker
WEBHOOK_REDIS_URL=redis://localhost:6379/0
WEBHOOK_QUEUE_NAME=webhook-dispatch
# RQ queue that runs the batch dispatch job.
WEBHOOK_LEADS_RQ_QUEUE_NAME=webhook-dispatch
# Redis list key that stores queued webhook deliveries for batching.
WEBHOOK_LEADS_BATCH_REDIS_LIST_KEY=webhook-dispatch
# Backwards compat (deprecated): if set, used as both queue name + list key unless the
# split settings above are explicitly set.
WEBHOOK_QUEUE_NAME=
WEBHOOK_DISPATCH_THROTTLE_SECONDS=2.0
WEBHOOK_DISPATCH_SCHEDULE_ID=webhook-dispatch-batch
WEBHOOK_DISPATCH_SCHEDULE_INTERVAL_SECONDS=900