Go to file
caoqianming 8c1b7b636d refactor(engine): replace 500ms ticker with per-unit event-driven tasks
- Engine now spawns one async task per enabled unit (supervised every 10s)
- wait_phase uses sleep_until + select! for precise timing; 500ms fault-tick
  runs inside each phase so fault/comm is still checked promptly
- WS UnitRuntimeChanged pushed only on state transitions, not every tick
- ControlRuntimeStore gains notify_unit/get_or_create_notify for instant
  wake-up when handlers change auto_enabled or fault_locked
- UnitRuntime: remove last_tick_at, current_run/stop/distributor_elapsed_sec;
  add display_acc_sec (snapshot at transition, avoids mid-cycle jitter)
- accumulated_run_sec now increments by exact run_time_sec*1000 per cycle
- unit.state_changed events no longer written to DB (too frequent)
- Frontend: show display_acc_sec instead of accumulated_run_sec
- styles: event-card flex-shrink:0 fixes text overlap under flex column

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 08:33:00 +08:00
docs refactor(engine): replace 500ms ticker with per-unit event-driven tasks 2026-03-26 08:33:00 +08:00
migrations feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
src refactor(engine): replace 500ms ticker with per-unit event-driven tasks 2026-03-26 08:33:00 +08:00
web refactor(engine): replace 500ms ticker with per-unit event-driven tasks 2026-03-26 08:33:00 +08:00
.gitignore feat: 软件第一个版本 2026-03-03 13:32:05 +08:00
API.md docs(api): add missing Tag, Page, Log sections and batch-auto/set-tags endpoints 2026-03-25 14:27:49 +08:00
Cargo.lock feat: add page 2026-03-11 13:23:05 +08:00
Cargo.toml feat(page): add page table and CRUD handlers 2026-03-11 13:54:14 +08:00