Skip to content

Comments

[pull] main from SwanHubX:main#161

Merged
pull[bot] merged 1 commit intoxj63:mainfrom
SwanHubX:main
Dec 31, 2025
Merged

[pull] main from SwanHubX:main#161
pull[bot] merged 1 commit intoxj63:mainfrom
SwanHubX:main

Conversation

@pull
Copy link

@pull pull bot commented Dec 31, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Add Timer utility with tests and update imports

Introduced a new Timer utility in swanlab.core_python.utils for scheduled and repeated task execution using daemon threads and event signaling. Added comprehensive unit tests for Timer, updated requirements-dev.txt to include pytest-mock, and adjusted __init__.py imports to expose the new utility.

* Refactor hardware monitor and remove unused helpers

Replaced MonitorCron with timer.Timer and a new monitor_interval function for hardware monitoring in SwanLabRun. Removed the check_log_level utility and its test, simplifying helper.py and cleaning up related test code. Also commented out problematic imports in __init__.py to avoid circular dependencies.

* Remove unused run lock from Timer class

Eliminated the threading.Lock previously used for mutual exclusion in the Timer class, as it was not necessary for task execution. The task execution method now directly calls the task without lock protection.
@pull pull bot locked and limited conversation to collaborators Dec 31, 2025
@pull pull bot added the ⤵️ pull label Dec 31, 2025
@pull pull bot merged commit 28a09dd into xj63:main Dec 31, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant