feat: add RQ-based webhook dispatch queue and delayed worker

This commit is contained in:
Abhimanyu Saharan
2026-02-14 06:21:50 +00:00
parent 42a41f64bc
commit b987db58b8
12 changed files with 679 additions and 23 deletions

View File

@@ -53,6 +53,12 @@ class Settings(BaseSettings):
# Database lifecycle
db_auto_migrate: bool = False
# Webhook queueing / dispatch
webhook_redis_url: str = "redis://localhost:6379/0"
webhook_queue_name: str = "webhook-dispatch"
webhook_dispatch_throttle_seconds: float = 2.0
webhook_dispatch_max_retries: int = 3
# Logging
log_level: str = "INFO"
log_format: str = "text"