v1.0.86: per-user per-stand tracker — /tmp/instances-{client_id}-{stand}.json, no _INITIAL

This commit is contained in:
2026-07-27 17:37:12 +04:00
parent 59e87cf50f
commit 40008db1bd
4 changed files with 52 additions and 40 deletions
+2 -2
View File
@@ -155,10 +155,10 @@ def api_operations(svc_id):
result = create_client(active_token, current_app.config["NUBES_API_ENDPOINT"])
if not result:
return jsonify({"error": "Не удалось определить стенд"}), 500
client, _ = result
client, endpoint = result
detail = get_service_detail(client, svc_id)
ops = detail.get("operations", [])
tracked = tracker_list()
tracked = tracker_list(_client_id(active_token), stand_name(endpoint))
tracked_by_uid = {t["instanceUid"]: t for t in tracked if t["svcId"] == svc_id}
instances = get_instances(client)
nubes_uids = {i["instanceUid"] for i in instances}