From 147bf2597a8d4e5e57fc3d39584004a728919daf Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Mon, 11 May 2026 17:47:19 +0100 Subject: [PATCH] Set null pyworker client cost to 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match the server-side workload_calculator (1.0) so the autoscaler routing hint is consistent with what the worker reports. A null reservation is a unitless slot — no reason for client cost to be 100. Co-Authored-By: Claude Opus 4.7 (1M context) --- workers/null/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/null/client.py b/workers/null/client.py index 909ad1b..2239a31 100644 --- a/workers/null/client.py +++ b/workers/null/client.py @@ -36,7 +36,7 @@ async def reserve( start = time.monotonic() log.info("[%s] POST /reserve duration=%ss", label, duration) try: - resp = await endpoint.request("/reserve", payload, cost=100) + resp = await endpoint.request("/reserve", payload, cost=1) elapsed = time.monotonic() - start log.info("[%s] returned after %.1fs: %s", label, elapsed, resp.get("response")) return resp["response"]