fix(douyu): 对齐绑定小程序码并修复残留任务停止
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user