feat: 采集任务在有效账号之间按负载分摊

This commit is contained in:
2026-11-10 11:34:29 +08:00
parent 8f92e5aa36
commit 9309d25420
7 changed files with 112 additions and 8 deletions
+2
View File
@@ -3,6 +3,7 @@
from __future__ import annotations
from app.bootstrap import init_db
from app.collect.accounts import reset_active_tasks
from app.config import postgres_conninfo
from app.runtime import start_background
@@ -16,6 +17,7 @@ def main() -> None:
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
ready = init_db()
reset_active_tasks()
start_background()
import time