Skip to content

fix(render-farm): clean up failed video outputs - #2898

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/render-farm-worker
Oct 22, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/render-farm-worker

Conversation

@yashranaway

@yashranaway yashranaway commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

a render farm worker writes each video chunk to a temp h264 file in the project cache and only deleted it after the render and upload both worked. if the engine, the audio wait, the multipart upload or hls failed, the full chunk file stayed in the cache, and every retry wrote a new one with a fresh name, so failed jobs slowly filled the disk.

now the cleanup sits in a finally so every exit removes it. the diff is mostly re-indent from wrapping the body in try, it's about ten lines with whitespace hidden. the new test fails a render and checks the file is gone.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Moves temporary video deletion into finally, so failed renders and uploads also remove their output.

  • Video tasks remove their temporary output when the work exits.

Reviews (1) · Last reviewed commit: "fix(render-farm): clean up failed video ..." · Reviewed by Greptile

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 07:54 Inactive
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 22, 2026 12:20pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 12:20 Inactive
@richiemcilroy
richiemcilroy merged commit 4af586c into CapSoftware:main Oct 22, 2026
28 of 29 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — bb547863 Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants