diff --git a/CHANGELOG.md b/CHANGELOG.md index bfed350..acb5aa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ step 1 (Hugging Face downloader) is released as a minor version. ## [Unreleased] +### Fixed + +- Image pulls showed "Starting ยท 0 B" until they finished: the worker's progress updates were never + written (Drizzle queries only run when awaited). + ## [0.7.0] - 2026-10-06 First part of model testing: runtimes (llama.cpp, vLLM and your own images) and the Docker diff --git a/src/worker/runtimes.ts b/src/worker/runtimes.ts index 6711cb3..3018d34 100644 --- a/src/worker/runtimes.ts +++ b/src/worker/runtimes.ts @@ -177,7 +177,14 @@ export async function handlePullRequests(): Promise { await c.pullImage(next.image, (p) => { if (Date.now() - lastWrite < PROGRESS_MS) return; lastWrite = Date.now(); - void d.update(runtimes).set({ pullProgress: p }).where(eq(runtimes.id, next.id)); + // Drizzle queries only run when awaited/then'd; `void query` would never execute. + d.update(runtimes) + .set({ pullProgress: p }) + .where(eq(runtimes.id, next.id)) + .then( + () => {}, + (err) => log.warn(`pull progress update failed: ${message(err)}`), + ); }); const img = await c.inspectImage(next.image); await d