feat(scada): add calibrated monitoring and incident recovery

This commit is contained in:
2026-11-07 19:44:58 +08:00
parent 26fa5d1909
commit ff8aba4964
109 changed files with 9165 additions and 629 deletions
+8
View File
@@ -146,6 +146,14 @@ class OperationalWorker:
json={"limit": 100, **scope},
)
recovery.raise_for_status()
try:
recovery_checks = await self.client.post(
f"{server}/api/v1/operational-tasks/recovery/reconcile", headers=headers,
json={"limit": 20, **scope},
)
recovery_checks.raise_for_status()
except httpx.HTTPError as exc:
logger.warning("SCADA recovery reconciliation unavailable: %s", type(exc).__name__)
active_run_ids: set[str] = set()
for status_value in ("claimed", "running"):
response = await self.client.get(