Skip to content

Conversation

SAKURA-CAT
Copy link
Member

修复在进程退出时可能因为硬件监控存在于单独线程导致的文件句柄状态冲突问题,两头堵:

  1. 在硬件监控添加 join 函数等待执行完毕
  2. 在日志写入器写入文件时try-catch,这将在未来写入本地调试文件: [REQUEST] 增加Debug日志文件 #1132

Added error handling for backup file write failures in porter/__init__.py to prevent crashes when backup mode is not enabled. Updated MonitorCron.cancel in run/helper.py to join the timer thread after cancellation for better thread management.
@SAKURA-CAT SAKURA-CAT self-assigned this Jul 11, 2025
@SAKURA-CAT SAKURA-CAT added the 🐛 bug Something isn't working label Jul 11, 2025
Corrected the logic for enabling system monitoring in SwanLabRun by changing the condition from 'or' to 'and'. Increased the number of epochs in the test_sync unit test to 10000 for more extensive testing.
@SAKURA-CAT SAKURA-CAT merged commit 4121870 into main Jul 11, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/io-error branch July 11, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants