perf(douyu): 拆分任务槽并改造绑定扫码调度

This commit is contained in:
yml
2026-11-20 22:03:20 +08:00
parent 8869e427d2
commit 071d45ad1d
40 changed files with 1635 additions and 245 deletions
+2 -2
View File
@@ -90,10 +90,10 @@ class HuyaBatchRunnerCore:
account_id = getattr(self._wss_sessions, "account_id", None)
if not account_id:
return
from ..database import SessionLocal
from ..database import WorkerSessionLocal
from .huya_service import persist_huya_session_cookie
db = SessionLocal()
db = WorkerSessionLocal()
try:
if persist_huya_session_cookie(
db, int(account_id), original_cookie, filled_cookie