fix(douyu): 对齐绑定小程序码并修复残留任务停止

This commit is contained in:
yml
2026-11-22 22:15:48 +08:00
parent 5393b668e0
commit d315e983f6
9 changed files with 409 additions and 38 deletions
+8 -2
View File
@@ -1612,7 +1612,10 @@ def stop_batch(
if batch.get("finished"):
douyu_batch_registry.pop(batch_id)
cleaned = cleanup_orphan_douyu_tasks(
db, batch_id=batch_id, message="批次已结束"
db,
batch_id=batch_id,
include_durable=True,
message="批次已结束",
)
if cleaned:
return {
@@ -1633,7 +1636,10 @@ def stop_batch(
return {"message": "已发送停止信号", "success": True}
cleaned = cleanup_orphan_douyu_tasks(
db, batch_id=batch_id, message="任务已停止(批次不存在)"
db,
batch_id=batch_id,
include_durable=True,
message="任务已停止(批次不存在)",
)
if cleaned:
if is_recharge_batch: