From 4128249c20b10c7dac38eab8d392803889e14b49 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:19:56 -0400 Subject: [PATCH] relay: a GPU worker refusal before the run starts falls back locally without surfacing the error (new valences work before the worker image catches up) Co-Authored-By: Claude Opus 5.5 --- live/server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/live/server.py b/live/server.py index b5c928e..c27316f 100644 --- a/live/server.py +++ b/live/server.py @@ -706,6 +706,12 @@ async def steer(req: Request): plogit = None try: async for ev_type, ev in _runpod_stream(job): + if ev_type == "error" and not got: + # the worker refused before starting (e.g. its image + # predates a new valence): fall back locally instead + # of showing the visitor an error first + print("runpod refused the job:", ev.get("e"), flush=True) + break if ev_type == "run" and not got: got = True # the worker doesn't know the site's metadata; the