fix(worker): 优化连接池容量拆分、并发入队与事件写入

This commit is contained in:
yml
2026-11-29 11:24:35 +08:00
parent 1d92fa6d53
commit 2ea105a924
18 changed files with 956 additions and 207 deletions
+3
View File
@@ -1124,6 +1124,9 @@ class LoginBatchRunner:
_append_task_info(task, acc)
self.db.commit()
# 后续阶段只通过 TaskLane.LOGIN 的独立 worker_db 执行,外层协调会话
# 若不先释放会在等邮箱验证码期间空占连接池长达 25 分钟。
self.db.close()
total = len(task_infos)
if total == 0:
self._push_log("warning", "没有可执行的账号")