fix(orchestrator): satisfy adapter type contracts
prd-number-check / require-numbered-prds (pull_request) Successful in 12s
lint / lint (push) Successful in 1m9s
test / image-input-builds (pull_request) Successful in 1m50s
test / unit (pull_request) Successful in 2m29s
test / integration-docker (pull_request) Successful in 55s
test / coverage (pull_request) Failing after 18s
tracker-policy-pr / check-pr (pull_request) Successful in 21s

This commit is contained in:
2026-07-26 23:12:30 +00:00
parent 40a607962f
commit adf68ff240
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -401,6 +401,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
self._write_json(408, {"error": "request body read timed out"})
return
try:
status: int
payload: Json
status, payload = dispatch(
server.orchestrator, method, self.path, body, role=role)
except Exception as e: # noqa: BLE001 — the control plane must stay up
@@ -472,7 +474,7 @@ class OrchestratorServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
return request, client_address
def process_request(
self, request: socket.socket, client_address: typing.Any,
self, request: typing.Any, client_address: typing.Any,
) -> None:
# Bound concurrency before ThreadingMixIn creates a worker. Backpressure
# stays in the accept loop instead of allocating an unbounded thread per
@@ -485,7 +487,7 @@ class OrchestratorServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
raise
def process_request_thread(
self, request: socket.socket, client_address: typing.Any,
self, request: typing.Any, client_address: typing.Any,
) -> None:
try:
super().process_request_thread(request, client_address)