修复虎牙注册续跑逻辑:默认从停止处继续,不重试已失败项

「继续未完成」只跑 pending/stopped;另提供「重试失败」可选重跑 error。避免大批量中途停止后把失败号全部再跑一遍。
This commit is contained in:
yml2213
2026-07-12 20:08:03 +08:00
parent e18b2c6e0c
commit 851d8c122b
5 changed files with 142 additions and 60 deletions
+2 -1
View File
@@ -426,7 +426,7 @@ def retry_auto_register_batch(
db: Session = Depends(get_db),
current: User = Depends(get_current_user),
):
"""从失败/停止/未完成条目续跑,成功项跳过"""
"""继续批次:默认从停止处往下跑(跳过成功与已失败);可传 mode 改行为"""
_require_huya_perm(current, "huya:import")
use_proxy = req.use_proxy
# 先看历史批次是否用过代理
@@ -439,6 +439,7 @@ def retry_auto_register_batch(
runner = huya_register_registry.retry(
batch_id,
proxy_config=proxy_config,
mode=req.mode,
concurrency=req.concurrency,
wait_seconds=req.wait_seconds,
poll_interval=req.poll_interval,