From e64c4b08390627cf9330a20e995561d5ce6fff76 Mon Sep 17 00:00:00 2001 From: killua4396 <1223086337@qq.com> Date: Wed, 22 May 2024 17:27:06 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9A=82=E6=97=B6=E5=8F=96=E6=B6=88r?= =?UTF-8?q?edis=E6=8C=81=E4=B9=85=E5=8C=96=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 38297a7..087e150 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -34,7 +34,7 @@ logger.info("数据库初始化完成") #--------------------设置定时任务----------------------- scheduler = AsyncIOScheduler() -scheduler.add_job(updating_redis_cache, CronTrigger.from_crontab("0 4 * * *")) +# scheduler.add_job(updating_redis_cache, CronTrigger.from_crontab("0 4 * * *")) @asynccontextmanager async def lifespan(app:FastAPI): scheduler.start() #启动定时任务