增加执行外部api的定时任务
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
@property
|
||||
def redis_url(self) -> str:
|
||||
@@ -19,6 +18,9 @@ class Settings(BaseSettings):
|
||||
celery_timezone: str = "Asia/Shanghai"
|
||||
celery_enable_utc: bool = False
|
||||
|
||||
# 任务配置
|
||||
task_enabled: bool = False # 是否启用任务
|
||||
|
||||
# Flower监控配置
|
||||
flower_enabled: bool = True # 是否启用Flower监控
|
||||
flower_url: str = "http://localhost:5555" # Flower访问URL
|
||||
|
||||
Reference in New Issue
Block a user