Fix image pull progress never being written
`void query` doesn't execute a Drizzle query (it runs on then/await), so pull progress stayed at "Starting" until the pull finished. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a756eb3794
commit
4f7ae1fc8c
2 files changed
+13
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -177,7 +177,14 @@ export async function handlePullRequests(): Promise<void> {
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user