Skip to content

Mark terminal download failures as failed#39

Open
yblzhua wants to merge 2 commits intowindoze95:mainfrom
yblzhua:fix-terminal-download-failures
Open

Mark terminal download failures as failed#39
yblzhua wants to merge 2 commits intowindoze95:mainfrom
yblzhua:fix-terminal-download-failures

Conversation

@yblzhua
Copy link

@yblzhua yblzhua commented Mar 12, 2026

Summary

  • mark videos as FAILED when a non-retryable exception terminates the download task
  • preserve retry behavior for RuntimeError failures
  • prevent videos from getting stuck in DOWNLOADING

Why

The task currently only marks a video as FAILED when retries are exhausted. For exceptions outside autoretry_for=(RuntimeError,), the task exits immediately and leaves the video permanently stuck in DOWNLOADING.

Validation

  • non-retryable failures now transition to FAILED
  • retryable runtime failures still defer the final failure state until retries are exhausted

Closes #28

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.

Bug: Non-RuntimeError exceptions leave videos stuck in DOWNLOADING status indefinitely

1 participant