feat(scheduler): 添加跨进程文件锁机制防止重复启动
- 引入 os 模块支持文件操作 - 实现跨平台文件锁功能 (Windows 使用 msvcrt, Linux 使用 fcntl) - 添加 _acquire_file_lock 方法用于获取文件锁 - 添加 _release_file_lock 方法用于释放文件锁 - 在 start 方法中集成文件锁检查机制 - 在 stop 方法中自动释放文件锁 - 支持多进程环境下的调度器实例互斥启动
Showing
1 changed file
with
60 additions
and
0 deletions
-
Please register or sign in to post a comment