progress 39
This commit is contained in:
+9
-3
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""检查 app_client 的 Step 2/后续开发任务是否全部完成。"""
|
"""检查 crawler-plugin 的 Plan 任务是否全部完成。"""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
@@ -37,12 +37,18 @@ def main() -> int:
|
|||||||
return 2
|
return 2
|
||||||
|
|
||||||
pending = [task for task in tasks if task.get("status") != "done"]
|
pending = [task for task in tasks if task.get("status") != "done"]
|
||||||
|
completed = total - len(pending)
|
||||||
if 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")
|
print("all tasks done: false")
|
||||||
return 1
|
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
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"total_tasks": 100,
|
"total_tasks": 100,
|
||||||
"completed": 38,
|
"completed": 39,
|
||||||
"rounds": 38,
|
"rounds": 39,
|
||||||
"started_at": "2026-08-29T14:10:48+08:00",
|
"started_at": "2026-08-29T14:10:48+08:00",
|
||||||
"updated_at": "2026-08-29T20:11:20.156661+08:00",
|
"updated_at": "2026-08-29T20:11:20.156661+08:00",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
"title": "补充删除、超时、重复回传和累计文件失败的资源清理测试",
|
"title": "补充删除、超时、重复回传和累计文件失败的资源清理测试",
|
||||||
"module": "shopdatacrawl",
|
"module": "shopdatacrawl",
|
||||||
"dependency": "38",
|
"dependency": "38",
|
||||||
"status": "pending"
|
"status": "done"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 40,
|
"id": 40,
|
||||||
|
|||||||
Reference in New Issue
Block a user