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 <noreply@anthropic.com>
This commit is contained in:
EandClaude Opus 5.5 committed 2026-10-02 17:19:56 -04:00
1 parent 4f04cc1a3f
commit 4128249c20
1 file changed
+6
+6
View File
@@ -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