From d3d3502f5a013773e05970ea5cb0f08d16d45e39 Mon Sep 17 00:00:00 2001 From: "mark.tian" Date: Wed, 10 Dec 2025 10:17:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=BD=E7=95=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- app/celery_app.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 579532f..16334e1 100644 --- a/.gitignore +++ b/.gitignore @@ -154,4 +154,6 @@ coverage app.db -.vscode \ No newline at end of file +.vscode + +celerybeat-schedule.* \ No newline at end of file diff --git a/app/celery_app.py b/app/celery_app.py index 99ab182..3107ce8 100644 --- a/app/celery_app.py +++ b/app/celery_app.py @@ -33,7 +33,7 @@ celery_app.conf.update( beat_schedule={ 'push-data-to-dtc-every-minute': { 'task': 'push_data_to_dtc', - 'schedule': 60.0, # 每60秒执行一次(1分钟) + 'schedule': 120.0, # 每120秒执行一次(1分钟) }, 'daily-morning-task': { 'task': 'call_api',