fix(engine): make video downloads atomic and retry transient failures

This commit is contained in:
James
2026-07-26 19:00:41 +00:00
parent a8ee81f3d8
commit c01f6b4468
3 changed files with 695 additions and 51 deletions
@@ -730,7 +730,7 @@ export async function extractAllVideoFrames(
if (isHttpUrl(videoPath)) {
const downloadDir = join(options.outputDir, "_downloads");
mkdirSync(downloadDir, { recursive: true });
videoPath = await downloadToTemp(videoPath, downloadDir);
videoPath = await downloadToTemp(videoPath, downloadDir, undefined, signal);
}
if (!existsSync(videoPath)) {