Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream files downloads to not exhaust memory #373

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Stream files downloads to not exhaust memory #373

merged 1 commit into from
Aug 12, 2024

Conversation

benoit74
Copy link
Collaborator

@benoit74 benoit74 commented Aug 12, 2024

This fixes the fact that file downloads should not be made in memory but rather streamed to the disk directly.

Created download code in a shared function in a new utils.py module, and moved some constants to constants.py, as a very very humble first step towards a less centralized code layout.

@benoit74 benoit74 self-assigned this Aug 12, 2024
@benoit74 benoit74 added this to the 2.1.1 milestone Aug 12, 2024
@benoit74 benoit74 marked this pull request as ready for review August 12, 2024 20:11
@benoit74 benoit74 requested a review from rgaudin August 12, 2024 20:11
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

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

LGTM ; mandatory first step indeed

@benoit74 benoit74 merged commit d814c23 into main Aug 12, 2024
5 checks passed
@benoit74 benoit74 deleted the stream_dl branch August 12, 2024 20:23
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