feat: support download persistent cache task from parents #950
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.
Description
This pull request includes several updates and improvements to the
dragonfly-client
project, focusing on enhancing the persistent cache functionality and improving error handling. The most important changes are summarized below:Persistent Cache Enhancements:
Storage
implementation indragonfly-client-storage/src/lib.rs
to handle persistent cache pieces, including methods for starting, finishing, failing, uploading, and checking the existence of persistent cache pieces. [1] [2]IDGenerator
implementation indragonfly-client-util/src/id_generator/mod.rs
to generate a more robust persistent cache task ID using SHA-256 hashing.Error Handling Improvements:
DfdaemonDownload
implementation indragonfly-client/src/grpc/dfdaemon_download.rs
to usesend_timeout
for error messages, ensuring that errors are handled within a specified timeout period. [1] [2] [3] [4]DfdaemonDownload
implementation, including more descriptive error messages and additional error handling for failed tasks. [1] [2] [3] [4]Configuration Updates:
Cargo.toml
file to use version2.1.11
of thedragonfly-api
crate.DfdaemonUploadServer
configuration indragonfly-client/src/grpc/dfdaemon_upload.rs
by adding TCP and HTTP2 keepalive settings.These changes collectively improve the robustness, reliability, and maintainability of the
dragonfly-client
project.Related Issue
Motivation and Context
Screenshots (if appropriate)