给每个定时任务增加一个开关
This commit is contained in:
@@ -18,6 +18,10 @@ class Settings(BaseSettings):
|
||||
celery_timezone: str = "Asia/Shanghai"
|
||||
celery_enable_utc: bool = False
|
||||
|
||||
# 任务配置
|
||||
enabled_push_data_to_dtc_task: bool = False # 是否启用推送数据给DTC的任务
|
||||
enabled_call_api_task: bool = False # 是否启用调用API的任务
|
||||
|
||||
# Flower监控配置
|
||||
flower_enabled: bool = True # 是否启用Flower监控
|
||||
flower_url: str = "http://localhost:5555" # Flower访问URL
|
||||
|
||||
Reference in New Issue
Block a user