推送数据给DTC改为独立执行的任务

This commit is contained in:
mark.tian
2025-12-04 15:05:56 +08:00
parent 929f00b34e
commit d3bbe5f649
9 changed files with 503 additions and 96 deletions

View File

@@ -5,6 +5,15 @@ class Settings(BaseSettings):
# 数据库配置
database_url: str = ""
# Celery配置
celery_broker_url: str = "redis://localhost:6379/0"
celery_result_backend: str = "redis://localhost:6379/0"
celery_task_serializer: str = "json"
celery_result_serializer: str = "json"
celery_accept_content: list = ["json"]
celery_timezone: str = "UTC"
celery_enable_utc: bool = True
# 业务配置
count_threshold: int = 3 # count阈值,大于等于此值直接返回
external_api_enabled: bool = False # 是否启用外部API调用