增加执行外部api的定时任务

This commit is contained in:
mark.tian
2025-12-09 21:32:07 +08:00
parent d00bb5e475
commit ae9b548311
6 changed files with 201 additions and 2 deletions

View File

@@ -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