fix: stream ssh downloads over tcp-pool
This commit is contained in:
+8
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user