fix: stream ssh downloads over tcp-pool

This commit is contained in:
Codex
2026-06-11 16:26:35 +00:00
parent 3d0faf557e
commit 6bce211b11
6 changed files with 473 additions and 154 deletions
+8 -1
View File
@@ -496,7 +496,14 @@ function genericJobProgress(job: JobRecord, stderrTailOverride?: string): JobPro
});
const downloadSummary = lastDownload === null
? null
: ` ssh-download ${Number(lastDownload.actualBytes ?? 0)}/${Number(lastDownload.expectedBytes ?? 0)} bytes chunks=${Number(lastDownload.chunks ?? 0)}${downloadRetryEvents.length === 0 ? "" : ` retries=${downloadRetryEvents.length} lastRetry=${String(lastDownload.reason ?? "unknown")}`}`;
: [
` ssh-download ${Number(lastDownload.actualBytes ?? lastDownload.bytes ?? 0)}/${Number(lastDownload.expectedBytes ?? lastDownload.totalBytes ?? 0)} bytes`,
`chunks=${Number(lastDownload.chunks ?? 0)}`,
`remaining=${Number(lastDownload.remainingBytes ?? 0)}`,
`throughput=${Number(lastDownload.throughputBytesPerSecond ?? 0)}Bps`,
`elapsedMs=${Number(lastDownload.elapsedMs ?? 0)}`,
downloadRetryEvents.length === 0 ? null : `retries=${downloadRetryEvents.length} lastRetry=${String(lastDownload.reason ?? "unknown")}`,
].filter(Boolean).join(" ");
return {
kind: "generic",
stage: lastDownload === null ? null : "ssh-download",