fix: count pre-existing preview files as cached in backfill

Pre-scan storage filenames and check each task's predicted cache file
before generating. Existing previews are now counted as "already cached"
and skipped, instead of being counted as remaining work and regenerated.
Storage-scan and plan-computation failures fall back to generation.
This commit is contained in:
Rawman Grey 2026-10-25 13:52:28 +03:00
parent 5a368c4a8c
commit 18db52a47c
6 changed files with 179 additions and 13 deletions

View file

@ -17,6 +17,7 @@ export interface WarmResultItem {
format: string | null;
ok: boolean;
ms: number;
cached?: boolean;
error?: string;
}