Skip to content

fix(ingestor): stale upload timeout cleanup and failure transition (#246)#248

Merged
crrow merged 4 commits intomainfrom
codex/issue-upload-timeout
Mar 31, 2026
Merged

fix(ingestor): stale upload timeout cleanup and failure transition (#246)#248
crrow merged 4 commits intomainfrom
codex/issue-upload-timeout

Conversation

@crrow
Copy link
Copy Markdown
Collaborator

@crrow crrow commented Mar 31, 2026

Closes #246

Summary

  • add upload_sessions persistence to track upload activity timestamps per video
  • touch session activity on init_upload and every successful upload_part
  • start a background stale-upload reaper in ingestor service
  • mark stale uploading videos as failed, delete stale part objects, and clear upload session rows
  • add UPLOAD_STALE_TIMEOUT_SECS and UPLOAD_STALE_CHECK_INTERVAL_SECS config defaults and docs

Test Plan

  • cargo test -p stream-core -p stream-ingestor
  • Manual e2e: start upload, close page mid-upload, reopen page and observe status remains uploading initially then transitions to failed after stale timeout window (no resume support)

crrow added 4 commits March 31, 2026 14:12
- track upload session activity during init and part upload

- add stale upload reaper to fail inactive uploads and cleanup parts

- expose stale timeout/check interval config and env docs

- add upload_sessions migration and repository tests

Closes #246
- remove duration getter and serde roundtrip tests with low signal

- keep behavior-focused config default/deserialize coverage
@crrow crrow merged commit 8a6a1be into main Mar 31, 2026
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.

fix(meta): add stale upload cleanup task and storage GC

1 participant