优化推送任务

This commit is contained in:
mark.tian
2025-12-05 06:20:14 +08:00
parent d3bbe5f649
commit 038363a17e
8 changed files with 288 additions and 751 deletions

View File

@@ -5,6 +5,16 @@ DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/ai_talk_callback_
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# Redis配置 (扩展配置,如果需要覆盖默认值)
REDIS_PASSWORD=
REDIS_MAX_CONNECTIONS=20
REDIS_TIMEOUT=5
# Redis分布式锁配置
REDIS_LOCK_TIMEOUT=300
REDIS_LOCK_MAX_RETRIES=10
REDIS_LOCK_RETRY_DELAY=0.5
# 业务配置
COUNT_THRESHOLD=3
EXTERNAL_API_ENABLED=false