feat: 清理旧日志时同步清理旧 on_error#299
Open
ocsin1 wants to merge 1 commit into
Open
Conversation
按本次 MXU 启动时间区分新旧文件,清理旧 .log 时同步清理旧 on_error,并保护正在使用的日志。手动清理仅在全部任务停止时清除本次启动产生的 on_error,运行中自动保留;同时增加任务提交互斥、分类报告和文件系统测试。
Contributor
There was a problem hiding this comment.
Hey - 我已经审查了你的修改,它们看起来很棒!
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会根据你的反馈改进之后的审查。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
close 4531
按本次 MXU 启动时间区分新旧文件,清理旧 .log 时同步清理旧 on_error,并保护正在使用的日志。手动清理仅在全部任务停止时清除本次启动产生的 on_error,运行中自动保留;同时增加任务提交互斥、分类报告和文件系统测试。
Summary by Sourcery
引入支持会话感知的日志功能以及 MaaFramework
on_error清理机制,使其与任务提交流程和运行时状态协调配合,并向前端暴露结构化的清理报告。New Features:
on_error产物。on_error清理范围添加选项,允许调用方在系统空闲时只清理“上一会话”的产物,或同时包含“当前会话”的产物。Bug Fixes:
on_error输出,避免被误删,包括在启动时自动清理和手动清理过程中。on_error清理过程串行化,避免在任务状态检查与任务启动之间出现竞争条件,从而防止正在运行的会话文件被误删除。Enhancements:
file_ops中移出,置入一个职责更清晰、错误报告更明确的专用模块来优化文件操作。on_error清理行为,包括符号链接(symlink)、目录缺失和删除失败等边界情况。Build:
Tests:
on_error清理的单元测试,覆盖范围解析、快照行为、保护规则以及失败处理。Original summary in English
Summary by Sourcery
Introduce session-aware log and MaaFramework on_error cleanup that coordinates with task submission and runtime state while exposing structured cleanup reporting to the frontend.
New Features:
Bug Fixes:
Enhancements:
Build:
Tests:
Original summary in English
Summary by Sourcery
引入支持会话感知的日志功能以及 MaaFramework
on_error清理机制,使其与任务提交流程和运行时状态协调配合,并向前端暴露结构化的清理报告。New Features:
on_error产物。on_error清理范围添加选项,允许调用方在系统空闲时只清理“上一会话”的产物,或同时包含“当前会话”的产物。Bug Fixes:
on_error输出,避免被误删,包括在启动时自动清理和手动清理过程中。on_error清理过程串行化,避免在任务状态检查与任务启动之间出现竞争条件,从而防止正在运行的会话文件被误删除。Enhancements:
file_ops中移出,置入一个职责更清晰、错误报告更明确的专用模块来优化文件操作。on_error清理行为,包括符号链接(symlink)、目录缺失和删除失败等边界情况。Build:
Tests:
on_error清理的单元测试,覆盖范围解析、快照行为、保护规则以及失败处理。Original summary in English
Summary by Sourcery
Introduce session-aware log and MaaFramework on_error cleanup that coordinates with task submission and runtime state while exposing structured cleanup reporting to the frontend.
New Features:
Bug Fixes:
Enhancements:
Build:
Tests: