auto-sync: 2026-05-18 16:20:29
This commit is contained in:
@@ -844,14 +844,18 @@ class TestE10FullChain:
|
||||
resp = client.post(f"/api/projects/{pid}/tasks", json={
|
||||
"id": dep_id,
|
||||
"title": "依赖任务",
|
||||
"status": "blocked",
|
||||
"depends_on": [child_ids[0]],
|
||||
})
|
||||
assert resp.status_code == 200
|
||||
|
||||
# 4. 完成 setup 子任务
|
||||
# 4. 手动把依赖任务设为 blocked(API create 默认 pending)
|
||||
db_path = data_root / pid / "blackboard.db"
|
||||
bb = Blackboard(db_path)
|
||||
bb.update_task_status(dep_id, "claimed", agent="test")
|
||||
bb.update_task_status(dep_id, "working", agent="test")
|
||||
bb.update_task_status(dep_id, "blocked", agent="test")
|
||||
|
||||
# 5. 完成 setup 子任务
|
||||
for s in ["claimed", "working", "review", "done"]:
|
||||
bb.update_task_status(child_ids[0], s, agent="test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user