feat: 采集任务在有效账号之间按负载分摊
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user