Fix: agent py3.10 startup crash + submit-path retry + pin agent ruff to py310 #169
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Urgent: the agent container crashed on startup (
NameError: name 'Config' is not defined) — an earlierruff --fixunquoted a self-referential annotation, safe on CI's Python 3.14 (PEP 649) but evaluated at class-def time on the agent's Python 3.10.config.py:from __future__ import annotations— the fix, version-agnostic.agent/ruff.toml: pin the agent totarget-version = "py310"(its real runtime) inheriting root rules. Ruff now flags this class as F821, so the CI lint lane catches it instead of shipping a broken image (CI otherwise lints on 3.14, masking 3.10 issues).client.py: submit-path retry (requested) — a dedicated session with a urllib3 Retry (connect/read/status, 0.5s backoff, 500/502/503/504, POST) so a blip after the GPU work is done doesn't discard it and force a re-download+recompute; a duplicate submit is a harmless 409 no-op. Lease/fetch keep the plain session + loop-level backoff.Full CI green on dev incl. integration.
🤖 Generated with Claude Code