progress 39

This commit is contained in:
2026-08-30 12:40:15 +08:00
parent b806ab9384
commit 6875abaa1a
2 changed files with 12 additions and 6 deletions
+9 -3
View File
@@ -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