weitongtong
e0ba568089
fix(cron): 修复固定间隔任务因 store 并发替换导致的重复执行
_on_timer 中 await _execute_job 让出控制权期间,前端轮询触发的
list_jobs 调用 _load_store 从磁盘重新加载覆盖 self._store,
已执行任务的状态被旧值回退,导致再次触发。
引入 _timer_active 标志位,在任务执行期间阻止并发 _load_store
替换 store。同时修复 store 为空时未重新 arm timer 的问题。
Made-with: Cursor
2026-04-11 16:15:01 +08:00
..
2026-04-11 15:56:41 +08:00
2026-04-02 13:54:40 +00:00
2026-03-06 19:13:56 +08:00
2026-04-10 12:29:43 +08:00
2026-04-11 15:56:41 +08:00
2026-04-06 19:17:55 +08:00
2026-04-11 15:56:41 +08:00
2026-04-11 16:15:01 +08:00
2026-03-25 22:07:14 +08:00
2026-04-10 05:37:25 +00:00
2026-04-04 19:43:18 +08:00
2026-04-11 15:56:41 +08:00
2026-04-04 14:37:59 +00:00
2026-04-08 02:22:25 +08:00
2026-04-11 13:46:15 +08:00
2026-04-08 23:47:36 +08:00
2026-02-01 07:36:42 +00:00
2026-04-11 15:56:41 +08:00