[Feature] Add producer-consumer pipeline for uploading folder#1671
Merged
wangxingjun778 merged 12 commits intoApr 13, 2026
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the file upload process to support resumable uploads and pipelined batch commits. It introduces UploadHashCache for persistent hashing, UploadCheckpoint for progress tracking, and BatchTracker for concurrent upload management. The upload_folder method is updated with exponential backoff retries and a new compute_file_hash utility that optimizes large file hashing using async I/O. Review feedback recommends narrowing exception handling in the retry logic to avoid masking errors, removing redundant CSV field size limit configurations across files, and marking the legacy get_file_hash function as deprecated.
tastelikefeet
approved these changes
Apr 13, 2026
yingdachen
reviewed
Apr 13, 2026
yingdachen
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Features & Enhancements
BatchTrackerto handle concurrent uploads effectively.compute_file_hashutility using async I/O for better performance with large files.UploadHashCacheto maintain hash states persistently.UploadCheckpointto track upload progress accurately.upload_foldermethod with exponential backoff retries for improved reliability.Code Quality & Maintenance
get_file_hashfunction as deprecated to encourage migration to the new utility.