feat: 采集和导出固定由排队进程执行
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user