refactor: increase dispatch throttle duration for improved queue processing

This commit is contained in:
Abhimanyu Saharan
2026-02-15 13:09:22 +05:30
parent 8f4a398839
commit efad1d4afc
2 changed files with 2 additions and 2 deletions

View File

@@ -22,5 +22,5 @@ DB_AUTO_MIGRATE=false
# Generic RQ queue / dispatch settings
RQ_REDIS_URL=redis://localhost:6379/0
RQ_QUEUE_NAME=default
RQ_DISPATCH_THROTTLE_SECONDS=2.0
RQ_DISPATCH_THROTTLE_SECONDS=15.0
RQ_DISPATCH_MAX_RETRIES=3

View File

@@ -56,7 +56,7 @@ class Settings(BaseSettings):
# RQ queueing / dispatch
rq_redis_url: str = "redis://localhost:6379/0"
rq_queue_name: str = "default"
rq_dispatch_throttle_seconds: float = 2.0
rq_dispatch_throttle_seconds: float = 15.0
rq_dispatch_max_retries: int = 3
rq_dispatch_retry_base_seconds: float = 10.0
rq_dispatch_retry_max_seconds: float = 120.0