fix: atomically finalize returned tasks - #335
Open
Iams4kura wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更描述
Fixes #334.
太子完成最终回奏后,原流程只追加
flow_log,没有同步写入Done和关闭调度器。因此任务超过停滞阈值后仍会被巡检重试并重新派发。本 PR:
complete命令,在同一次文件锁事务中写入结构化回奏记录、Done、completedAt和 scheduler 完成态;重复调用保持幂等。complete,同时保留普通flow的原有语义。回归测试在原始
mainSHA14a2075上稳定失败 2 项,应用修复后相同命令 2 项全部通过。变更类型
检查清单
python3 -m py_compile检查run_loop.sh(本修复不依赖 OpenClaw 运行时)验证结果:
OPENCLAW_HOME的项目测试:67 passed, 7 deselectedZhongshu可直接done;5 个 symlink 用例未隔离模块级OPENCLAW_HOMEpython3 -m py_compile scripts/kanban_update.py dashboard/server.py关联 Issue
Fixes #334