- download_stat 新增 _task_queue / _completed_chats 与三个辅助函数 - 切频道前自动把上一个频道的最终进度快照进 completed_chats - save_and_restart(_multi) 启动任务时设置队列,供前端渲染总览 - 前端 banner 改为"任务队列"多卡片列表(✅已完成 / 🚀当前 / ⏳排队中), 含进度条、跳过明细;兼容单频道场景 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ from module.download_stat import (
|
||||
update_download_status,
|
||||
update_task_progress,
|
||||
reset_task_progress,
|
||||
snapshot_current_chat,
|
||||
increment_task_stat,
|
||||
get_task_progress,
|
||||
is_message_skipped,
|
||||
@@ -602,6 +603,8 @@ async def download_chat_task(
|
||||
node: TaskNode,
|
||||
):
|
||||
"""Download all task"""
|
||||
# 切到下一个频道前,先把上一个频道的最终进度快照进 _completed_chats
|
||||
snapshot_current_chat()
|
||||
# Reset and update task progress
|
||||
reset_task_progress()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user