fix: harden Polygon operation validation

This commit is contained in:
Repinoid
2026-10-25 14:07:13 +03:00
parent 3df89ec9e7
commit e3a031ce50
18 changed files with 803 additions and 346 deletions
+3
View File
@@ -50,6 +50,9 @@ def run_operation(uid):
if op.get("dtFinish") is not None:
return jsonify({"error": "operation already completed"}), 409
if not state.get_instance(op.get("instanceUid")):
return jsonify({"error": "instance not found"}), 404
# Фиксируем время старта
op["dtStart"] = _now()