From df14f81b4d34b7aea88bb5e72cbdaba70f7d728f Mon Sep 17 00:00:00 2001
From: xuyonghao <898441624@qq.com>
Date: 星期三, 08 一月 2025 18:37:43 +0800
Subject: [PATCH] excel触发文件下载
---
main.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/main.py b/main.py
index fc2f567..9639f36 100644
--- a/main.py
+++ b/main.py
@@ -23,6 +23,7 @@
from app.api.group import group_router
from app.api.role import role_router
from app.models.base_model import init_db
+from app.task.delete_execl_file import delete_file_after_delay
# from app.models.base_model import init_db
from app.task.fetch_agent import sync_agents, initialize_agents, sync_agents_v2, sync_knowledge, \
sync_resources_from_json
@@ -38,8 +39,9 @@
# initialize_agents()
# # 鍦ㄥ簲鐢ㄥ惎鍔ㄦ椂鍚屾浠g悊
# sync_agents()
- await sync_default_data()
+
+ await sync_default_data()
sync_agents_v2()
sync_knowledge()
sync_resources_from_json()
@@ -66,6 +68,7 @@
# 鍒涘缓璋冨害鍣�
scheduler = BackgroundScheduler()
scheduler.add_job(sync_agents_v2, 'interval', minutes=60, id="sync_resource_data")
+# scheduler.add_job(delete_file_after_delay, 'interval', minutes=10, id="delete_file_after_delay")
scheduler.start()
app.include_router(auth_router, prefix='/api/auth', tags=["auth"])
--
Gitblit v1.8.0