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

feat: add ReadPersistentCacheTask and WritePersistentCacheTask message #441

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

gaius-qi
Copy link
Member

Description

This pull request introduces new functionality for handling persistent cache tasks in the dfdaemon service. The changes include updates to the protobuf definitions, gRPC service interfaces, and generated Rust code to support writing and reading persistent cache tasks.

Protobuf and gRPC Updates:

  • Added new message types for WritePersistentCacheTaskRequest, WritePersistentCacheTaskStartedRequest, WritePersistentCacheTaskFinishedRequest, WriteChunkRequest, WritePersistentCacheTaskResponse, ReadPersistentCacheTaskRequest, ReadPersistentCacheTaskResponse, ReadPersistentCacheTaskFinishedResponse, and ReadChunkResponse in pkg/apis/dfdaemon/v2/dfdaemon.proto and proto/dfdaemon.proto. [1] [2]
  • Added new RPC methods WritePersistentCacheTask and ReadPersistentCacheTask to the DfdaemonDownload service in pkg/apis/dfdaemon/v2/dfdaemon.proto and proto/dfdaemon.proto. [1] [2]

gRPC Client and Server Implementation:

  • Implemented client-side streaming for WritePersistentCacheTask and server-side streaming for ReadPersistentCacheTask in pkg/apis/dfdaemon/v2/dfdaemon_grpc.pb.go. [1] [2] [3] [4] [5] [6]

Rust Code Updates:

  • Generated Rust code to include the new message types and RPC methods in src/dfdaemon.v2.rs.

Version Update:

  • Updated the version of the dragonfly-api package from 2.1.4 to 2.1.5 in Cargo.toml.

Related Issue

Motivation and Context

@gaius-qi gaius-qi added the enhancement New feature or request label Jan 15, 2025
@gaius-qi gaius-qi self-assigned this Jan 15, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner January 15, 2025 03:47
yxxhero
yxxhero previously approved these changes Jan 15, 2025
CormickKneey
CormickKneey previously approved these changes Jan 15, 2025
@gaius-qi gaius-qi dismissed stale reviews from CormickKneey and yxxhero via d2158f3 January 15, 2025 04:08
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

lgtm

@gaius-qi gaius-qi merged commit 76b2eac into main Jan 15, 2025
6 checks passed
@gaius-qi gaius-qi deleted the feature/read-write branch January 15, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants