feat(scada): add project monitoring replay
Generic Container CI/CD / test-build-publish (push) Successful in 3m39s
Server CI/CD v2 / build-test-publish-and-deploy (push) Successful in 3m39s

This commit is contained in:
2026-11-04 14:27:21 +08:00
parent f25423dec4
commit 26fa5d1909
53 changed files with 5153 additions and 20 deletions
+16
View File
@@ -98,3 +98,19 @@ async def bounded_calculation(function, *args, **kwargs):
finally:
_slots.release()
return await asyncio.to_thread(run)
async def calculate_replay_burst_location(
parameters: dict[str, Any], *, network: str, username: str,
) -> dict[str, Any]:
"""Run location with Server-built frozen replay series and no live SCADA query."""
from app.services.burst_location import run_burst_location_by_network
return await bounded_calculation(
run_burst_location_by_network,
network=network,
username=username,
scheme_name=None,
final_candidates_csv_path=None,
**parameters,
)