[python] 修复进程重启机制不完善与Scheduler停止时的AttributeError#359
Merged
CodeCasterX merged 6 commits intoModelEngine-Group:3.6.xfrom Nov 19, 2025
Merged
[python] 修复进程重启机制不完善与Scheduler停止时的AttributeError#359CodeCasterX merged 6 commits intoModelEngine-Group:3.6.xfrom
CodeCasterX merged 6 commits intoModelEngine-Group:3.6.xfrom
Conversation
4 tasks
Contributor
Author
4 tasks
4 tasks
loveTsong
reviewed
Nov 18, 2025
| time.sleep(restart_delay) | ||
|
|
||
| except Exception as e: | ||
| fit_logger.error(f"Error during process management: {e}") |
Contributor
loveTsong
reviewed
Nov 18, 2025
| @@ -0,0 +1,88 @@ | |||
| # -- encoding: utf-8 -- | |||
| # Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. | |||
loveTsong
reviewed
Nov 18, 2025
|
|
||
| # 检查CPU使用(需要两次采样) | ||
| cpu_percent = info['cpu_percent'] | ||
| if cpu_percent > self.max_cpu_percent: |
Contributor
loveTsong
reviewed
Nov 18, 2025
| @@ -0,0 +1,107 @@ | |||
| # -- encoding: utf-8 -- | |||
| # Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. | |||
loveTsong
reviewed
Nov 18, 2025
| health-monitor: | ||
| check-interval: 30 # 健康检查间隔(秒) | ||
| memory-threshold: 80.0 # 内存使用率阈值(百分比) | ||
| cpu-threshold: 90.0 # CPU使用率阈值(百分比) |
Contributor
loveTsong
reviewed
Nov 18, 2025
| @@ -0,0 +1,176 @@ | |||
| # -- encoding: utf-8 -- | |||
loveTsong
reviewed
Nov 18, 2025
| @@ -0,0 +1,88 @@ | |||
| # -- encoding: utf-8 -- | |||
5bd64ff to
3493a9f
Compare
loveTsong
approved these changes
Nov 19, 2025
loveTsong
approved these changes
Nov 19, 2025
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.







🔗 相关问题 / Related Issue
Issue 链接 / Issue Link: #362 👈👈
📋 变更类型 / Type of Change
📝 变更目的 / Purpose of the Change
主进程退出之后,心跳偶现不能将主进程拉起的问题,导致
📋 主要变更 / Brief Changelog
🧪 验证变更 / Verifying this Change
测试步骤 / Test Steps
测试覆盖 / Test Coverage
📸 截图 / Screenshots
✅ 贡献者检查清单 / Contributor Checklist
请确保你的 Pull Request 符合以下要求 / Please ensure your Pull Request meets the following requirements:
基本要求 / Basic Requirements:
代码质量 / Code Quality:
测试要求 / Testing Requirements:
mvn -B clean package -Dmaven.test.skip=true/ Basic checks passmvn clean install/ Unit tests pass文档和兼容性 / Documentation and Compatibility:
📋 附加信息 / Additional Notes
审查者注意事项 / Reviewer Notes: