From 774d2b99107e8e9dea82ebacf7a168fc3b3fe264 Mon Sep 17 00:00:00 2001 From: sora <2075279110@qq.com> Date: Thu, 17 Sep 2026 03:10:16 +0000 Subject: [PATCH] Pull progress: 3s snapshot throttle Cold pulls now tick a 'Downloading xMB/yGB' snapshot at most every 3s (was 10s) -- keyword hits (Pull complete / Status / errors) still print immediately. Co-Authored-By: Claude --- evalharness/sandbox/prefetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evalharness/sandbox/prefetch.py b/evalharness/sandbox/prefetch.py index aa2b081..385adfe 100644 --- a/evalharness/sandbox/prefetch.py +++ b/evalharness/sandbox/prefetch.py @@ -123,8 +123,8 @@ def _pull_one(image: str, verbose: bool = True) -> None: now = _time.monotonic() if verbose and (any(k in line for k in ('Pulling from', 'Pull complete', 'Status', - 'error', 'denied')) - or now - last_show > 10): + 'error', 'denied', 'Extracting', 'Verifying')) + or now - last_show > 3): # Downloading snapshots print(f' {last_line[:100]}', file=_sys.stderr, flush=True) last_show = now proc.wait(timeout=3600)