fix(worker): 优化连接池容量拆分、并发入队与事件写入
This commit is contained in:
@@ -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", "没有可执行的账号")
|
||||
|
||||
Reference in New Issue
Block a user