Skip to content

Fix DishCam sidecar completion and batch encode disk use - #198

Merged
wasimxyz merged 3 commits into
stagingfrom
cursor/complete-dishcam-run-json
Aug 20, 2026
Merged

Fix DishCam sidecar completion and batch encode disk use#198
wasimxyz merged 3 commits into
stagingfrom
cursor/complete-dishcam-run-json

Conversation

@wasimxyz

@wasimxyz wasimxyz commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Mark run.json completed after it parses, even if a stack failed, so a reprocess does not leave the sidecar (and the run) stuck in processing. The run still shows failed when a stack failed.
  • Write run metadata from the parsed sidecar even when every stack is skipped, so a corrected run.json still updates the run.
  • Fail an unreadable run.json (and its stacks) through processing first — the API does not allow uploadedfailed.
  • When run.json encodes every stack in one invoke, skip stacks that are already completed or processing so a later disk-full error cannot reopen a sibling's success and mark it failed. A stack left in processing after a timeout is retried by reprocessing that TIFF.
  • Delete each local TIFF/MP4/JPEG after encode so a multi-stack batch stays within the Lambda /tmp cap.

Test plan

  • uv run pytest lambda/tests/dishcam/test_process_file.py
  • After deploy, reprocess only failed DishCam TIFFs (or the whole run — batch encode is now safe) and confirm run.json leaves processing
  • Confirm high-quality multi-stack runs complete without [Errno 28] No space left on device

Made with Cursor

wasimxyz and others added 2 commits August 20, 2026 15:06
The sidecar has no TIFF of its own, so reprocess left it in processing and the run never left that state even after the MP4 was uploaded.

Co-authored-by: Cursor <cursoragent@cursor.com>
…stacks.

A run.json invoke encoded every TIFF without deleting local files, so the 10 GB Lambda disk filled after a few high-quality stacks. The batch also reset completed siblings to processing, then marked them failed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
data-hub Ready Ready Preview Aug 20, 2026 11:05pm

Request Review

@wasimxyz wasimxyz self-assigned this Aug 20, 2026
A corrected run.json now updates the run even when every stack is skipped. An unreadable sidecar (and its stacks) goes through processing before failed. Completing the sidecar no longer hides an encode error.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wasimxyz
wasimxyz merged commit 576fccf into staging Aug 20, 2026
4 checks passed
@wasimxyz
wasimxyz deleted the cursor/complete-dishcam-run-json branch August 20, 2026 23:08
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