diff --git a/check_progress.py b/check_progress.py index 058b47dd..ff766da6 100644 --- a/check_progress.py +++ b/check_progress.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""检查 app_client 的 Step 2/后续开发任务是否全部完成。""" +"""检查 crawler-plugin 的 Plan 任务是否全部完成。""" from __future__ import annotations import json @@ -37,12 +37,18 @@ def main() -> int: return 2 pending = [task for task in tasks if task.get("status") != "done"] + completed = total - len(pending) if pending: - print(f"pending tasks: {len(pending)}/{total}") + print(f"{len(pending)} tasks remaining out of {total}") + for task in pending[:20]: + print(f" task {task.get('id')}: {task.get('status')}") + if len(pending) > 20: + print(f" ... and {len(pending) - 20} more") print("all tasks done: false") return 1 - print(f"all tasks done: true ({total})") + print("all tasks done") + print(f"total: {total}, completed: {completed}, rounds: {data.get('rounds', 0)}") return 0 diff --git a/progress.json b/progress.json index d70855b0..677d5767 100644 --- a/progress.json +++ b/progress.json @@ -1,8 +1,8 @@ { "version": 1, "total_tasks": 100, - "completed": 38, - "rounds": 38, + "completed": 39, + "rounds": 39, "started_at": "2026-08-29T14:10:48+08:00", "updated_at": "2026-08-29T20:11:20.156661+08:00", "tasks": [ @@ -277,7 +277,7 @@ "title": "补充删除、超时、重复回传和累计文件失败的资源清理测试", "module": "shopdatacrawl", "dependency": "38", - "status": "pending" + "status": "done" }, { "id": 40,