feat: 采集和导出固定由排队进程执行

This commit is contained in:
2026-10-30 09:58:21 +08:00
parent 3fa4f83180
commit c232ccbec5
12 changed files with 36 additions and 59 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""执行排队的导出和采集。"""
"""排队进程:从 NQI、FTP/SFTP 采集入库,并导出结果文件。"""
from __future__ import annotations
@@ -14,7 +14,7 @@ def main() -> None:
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
init_db()
start_background("worker")
start_background()
if postgres_conninfo():
from app.tasks.queue import serve