homelab-codex-ws/services/control-plane
Oskar Kapala fb7828b52b supervisor: auto-cancel pending actions when drift is resolved
When a service becomes healthy (node-agent emits service_healthy → observer
updates services.json), any previously queued redeploy/container_restart
action is stale. Without cleanup, the queue accumulates old actions that
require manual rejection.

_cancel_resolved_pending_actions() runs after each reconcile cycle:
- Reads all pending/*.json with type=redeploy or container_restart
- If the service is now healthy in actual_state, moves action to cancelled/
  with reason=drift_resolved_auto
- Only pending actions are touched; approved/running are left to the operator

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-27 14:58:55 +02:00
..
src supervisor: auto-cancel pending actions when drift is resolved 2026-05-27 14:58:55 +02:00
deploy-local.sh Add control plane deploy script and fix UI healthcheck 2026-05-18 21:34:57 +02:00
docker-compose.yml Add control plane deploy script and fix UI healthcheck 2026-05-18 21:34:57 +02:00
Dockerfile Add heartbeat updates and improve health checks in control-plane components 2026-05-12 20:59:46 +02:00