forked from EnzeD/vibe-coding
-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug]: workflow熔断机制失效 #15
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Backlog
位置:在 /i18n/zh/workflow/auto-dev-loop/workflow_engine/runner.py 的 start_workflow 函数中,当 Step 5 判定验证失败并触发重试(回滚到 Step 2)时,代码使用了嵌套的 for 循环来执行重试步骤(第158行)。
问题:内层的 for retry_step 循环仅仅调用了 run_step,没有在 Step 4 重新读取 verify_status(验证结果),没有在 Step 5 重新判断是否需要再次回滚。如果重试的那一次依然失败,程序会直接退出内层循环并结束整个工作流,而无法触发第 2 次或第 3 次重试,导致重试机制失效。
代码片段: