From 495515ea8fb5dd434c5abaa60193371aeee6f56f Mon Sep 17 00:00:00 2001 From: "mark.tian" Date: Fri, 12 Dec 2025 06:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=AF=8F=E5=A4=A9=E4=B8=8A?= =?UTF-8?q?=E5=8D=889=E7=82=B9=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/celery_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/celery_app.py b/app/celery_app.py index 325c92d..9b23ca1 100644 --- a/app/celery_app.py +++ b/app/celery_app.py @@ -46,7 +46,7 @@ celery_app.conf.update( }, 'daily-morning-task': { 'task': 'call_api', - 'schedule': 120.0, # 每120秒执行一次(2分钟) + 'schedule': crontab(hour=9, minute=0), # 每天上午9点执行 }, }, )