Skip to content

Commit

Permalink
feat: add candidate_parent_ids to reschedule message (#245)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jan 9, 2024
1 parent e759b2e commit e082eef
Show file tree
Hide file tree
Showing 6 changed files with 355 additions and 333 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.0.73"
version = "2.0.74"
authors = ["Gaius <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
671 changes: 342 additions & 329 deletions pkg/apis/scheduler/v2/scheduler.pb.go

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion pkg/apis/scheduler/v2/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ message DownloadPeerBackToSourceStartedRequest {

// RescheduleRequest represents reschedule request of AnnouncePeerRequest.
message RescheduleRequest {
// Candidate parent ids.
repeated string candidate_parent_ids = 1;

// The description of the reschedule reason.
optional string description = 1 [(validate.rules).string.min_len = 1];
optional string description = 2 [(validate.rules).string.min_len = 1];
}

// DownloadPeerFinishedRequest represents peer download finished request of AnnouncePeerRequest.
Expand Down
5 changes: 4 additions & 1 deletion proto/scheduler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ message DownloadPeerBackToSourceStartedRequest {

// RescheduleRequest represents reschedule request of AnnouncePeerRequest.
message RescheduleRequest {
// Candidate parent ids.
repeated string candidate_parent_ids = 1;

// The description of the reschedule reason.
optional string description = 1;
optional string description = 2;
}

// DownloadPeerFinishedRequest represents peer download finished request of AnnouncePeerRequest.
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.
5 changes: 4 additions & 1 deletion src/scheduler.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ pub struct DownloadPeerBackToSourceStartedRequest {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RescheduleRequest {
/// Candidate parent ids.
#[prost(string, repeated, tag = "1")]
pub candidate_parent_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The description of the reschedule reason.
#[prost(string, optional, tag = "1")]
#[prost(string, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
}
/// DownloadPeerFinishedRequest represents peer download finished request of AnnouncePeerRequest.
Expand Down

0 comments on commit e082eef

Please sign in to comment.