moving everything into standard api responses

This commit is contained in:
2025-08-04 07:38:40 +09:30
parent a709b59214
commit beae6b181c
12 changed files with 540 additions and 282 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ def register_socketio_handlers(socketio):
}, to=request.sid)
return
container_info = container_response.json()
container_info = container_response.json()['data']
worker_id = container_info["workload_host_id"]
if worker_id not in connected_workers:
@@ -110,7 +110,7 @@ def register_socketio_handlers(socketio):
logger.info(f"[{request_id}] Starting log stream for container {container_id}")
container_response = requests.get(f"{api_server_url}/workloads/containers/{container_id}")
container_response.raise_for_status()
container_info = container_response.json()
container_info = container_response.json()['data']
worker_id = container_info["workload_host_id"]
if worker_id not in connected_workers:
+1 -1
View File
@@ -28,7 +28,7 @@ def register_socketio_handlers(socketio):
# Lookup container details
response = requests.get(f"{api_server_url}/workloads/containers/{container_id}")
response.raise_for_status()
info = response.json()
info = response.json()['data']
worker_id = info["workload_host_id"]
context = {