feat(scada): add calibrated monitoring and incident recovery
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user