增加执行外部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

@@ -34,6 +34,10 @@ celery_app.conf.update(
'task': 'push_data_to_dtc',
'schedule': 60.0, # 每60秒执行一次(1分钟)
},
'daily-morning-task': {
'task': 'call_api',
'schedule': '120.0'
},
},
)