fix(douyu): 修复斗鱼链路 P0/P1 隐患并增强 P2 运维队列可观测性

This commit is contained in:
yml
2026-11-29 14:10:24 +08:00
parent be7146a9ef
commit d12d9e02b3
51 changed files with 2510 additions and 561 deletions
@@ -308,7 +308,7 @@ class AccountCheckRunner:
finished_at=None,
)
try:
result = DouyuLogin(
loginer = DouyuLogin(
cast(
AccountLike,
SimpleNamespace(
@@ -327,7 +327,13 @@ class AccountCheckRunner:
proxy_fetcher=self._shared_proxy_fetcher,
stop_event=self._stop,
api_strategy=create_login_api_strategy(self.batch.api_strategy),
).check_account()
)
try:
result = loginer.check_account()
finally:
close = getattr(loginer, "close", None)
if callable(close):
close()
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
self._set_item(
index, status="error", message=f"检测异常: {exc}", finished_at=_now()