feat: 实现已确认的登录、采集和任务导出

This commit is contained in:
2026-10-29 18:11:15 +08:00
parent af91488934
commit 7ed299bbf6
44 changed files with 4546 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
"""执行排队的导出和采集。"""
from __future__ import annotations
from app.bootstrap import init_db
from app.config import postgres_conninfo
from app.runtime import start_background
def main() -> None:
init_db()
start_background()
if postgres_conninfo():
from app.tasks.queue import serve
serve()
return
import time
while True:
time.sleep(3600)
if __name__ == "__main__":
main()