Skip to content

Prevent single failed download from killing the whole download worker#112

Open
plsdoant wants to merge 1 commit into
SCE-Development:devfrom
plsdoant:20260625-download-worker-fix
Open

Prevent single failed download from killing the whole download worker#112
plsdoant wants to merge 1 commit into
SCE-Development:devfrom
plsdoant:20260625-download-worker-fix

Conversation

@plsdoant

Copy link
Copy Markdown

When download_video() raised an error for any reason (unavailable, network error, etc.) the exception propagated out of the while True loop and the worker thread died.

An except Exception block was added in the worker loop that catches any error from a single download, logs it and lets the loop continue.

Now a video that fails to download is logged and skipped. The worker thread stays alive and continues to process the rest of the queue.

@MatthewTran22 MatthewTran22 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🍌

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