Skip to content

fix: fail on hung encode, resume TUS uploads, fail-fast on video upload - #88

Merged
AnikMajumdar merged 1 commit into
anikfrom
fix/upload-review-comments
Sep 12, 2026
Merged

AnikMajumdar merged 1 commit into
anikfrom
fix/upload-review-comments

Conversation

@AnikMajumdar

Copy link
Copy Markdown
Collaborator

Addresses PR #86 review round 2:

  • make_streamable_mp4 now raises on an ffmpeg timeout / exhausted encode budget instead of returning the unencoded original, which run_pipeline would otherwise upload as a non-playable processed.mp4 and mark the match done.
  • _upload_resumable resumes a TUS upload from the server's offset (via HEAD) after a transient chunk failure instead of restarting the session; the create step is retried and the whole upload stays within the 600s budget.
  • upload_results_parallel blocks on the mandatory video first and shuts the pool down without waiting, so a video failure (e.g. 413) is not delayed by optional heatmap retries burning their budget.

Adds tests for the encode-timeout raise and the video fail-fast behavior (9 pass).

Addresses PR #86 review round 2:

- make_streamable_mp4 now raises on an ffmpeg timeout / exhausted encode budget
  instead of returning the unencoded original, which run_pipeline would otherwise
  upload as a non-playable processed.mp4 and mark the match done.
- _upload_resumable resumes a TUS upload from the server's offset (via HEAD) after
  a transient chunk failure instead of restarting the session; the create step is
  retried and the whole upload stays within the 600s budget.
- upload_results_parallel blocks on the mandatory video first and shuts the pool
  down without waiting, so a video failure (e.g. 413) is not delayed by optional
  heatmap retries burning their budget.

Adds tests for the encode-timeout raise and the video fail-fast behavior (9 pass).
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
courtcheck Ready Ready Preview Sep 12, 2026 8:35pm UTC

@AnikMajumdar
AnikMajumdar merged commit 99cc422 into anik Sep 12, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 67177ef6 Deployed Sep 12, 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.

1 participant