fix(subscribe): fail closed on lock timeout (#6384)

This commit is contained in:
InfinityPacer
2026-08-22 09:47:39 +08:00
committed by GitHub
parent a90a0e8597
commit f7b7201fba
3 changed files with 56 additions and 2 deletions
+14 -2
View File
@@ -1375,7 +1375,13 @@ class SubscribeChain(MusicSubscribeMixin, InteractionChainMixin, ChainBase):
):
logger.debug(f"search lock acquired at {datetime.now()}")
else:
logger.warn("search上锁超时")
logger.error("订阅搜索锁等待超时,已中止本轮执行")
if progress_callback:
progress_callback(
value=100,
text="订阅搜索锁等待超时,已跳过本轮",
)
return
subscribeoper = SubscribeOper()
if sid:
@@ -1819,7 +1825,13 @@ class SubscribeChain(MusicSubscribeMixin, InteractionChainMixin, ChainBase):
):
logger.debug(f"match lock acquired at {datetime.now()}")
else:
logger.warn("match上锁超时")
logger.error("订阅匹配锁等待超时,已中止本轮执行")
if progress_callback:
progress_callback(
value=100,
text="订阅匹配锁等待超时,已跳过本轮",
)
return
# 预识别所有未识别的种子
processed_torrents: Dict[str, List[Context]] = {}