plc_control/crates/app_operation_system
caoqianming ed638eadb2 Stop respawning disabled-mode segment tasks
Supervisor filtered only on enabled, so disabled-mode segments (e.g.
the OPS_SEED_TEMPLATES skeleton, which seeds mode='disabled' until an
operator finishes wiring) got a task spawned every 10 s only to exit
immediately on the task's own enable-check, spamming the log with
"segment X disabled or removed, task exiting" every supervisor tick.

Aligning the supervisor's filter with the task's exit condition lets
disabled-mode segments stay quiescent. Flipping mode away from
'disabled' via the config UI now reaches the engine within one
supervisor cycle (≤10 s), unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 12:26:25 +08:00
..
src Stop respawning disabled-mode segment tasks 2026-05-19 12:26:25 +08:00
tests Persist event subject_type/subject_id and add ops event timeline API 2026-05-19 08:57:40 +08:00
Cargo.toml Bootstrap operation-system app skeleton 2026-05-18 21:39:09 +08:00