Compare commits

...
Author SHA1 Message Date
chrislu e16324da94 update job status 2023-09-25 20:09:03 -07:00
chrislu 5e22524351 prototyping 2023-09-25 18:21:36 -07:00
+36
View File
@@ -40,6 +40,11 @@ service SeaweedMessaging {
rpc CheckTopicPartitionsStatus (CheckTopicPartitionsStatusRequest) returns (CheckTopicPartitionsStatusResponse) {
}
rpc CreateTableSnapshot (CreateTableSnapshotRequest) returns (CreateTableSnapshotResponse) {
}
rpc CheckJobStatus (CheckJobStatusRequest) returns (CheckJobStatusResponse) {
}
// data plane
rpc Publish (stream PublishRequest) returns (stream PublishResponse) {
}
@@ -47,6 +52,37 @@ service SeaweedMessaging {
}
}
message CreateTableSnapshotRequest {
string database_name = 1;
string table_name = 2;
string s3_directory = 3;
string aws_access_key_id = 4;
string aws_secret_access_key = 5;
}
enum JobStatus {
JOB_STATUS_UNKNOWN = 0;
JOB_STATUS_CREATED = 1;
JOB_STATUS_FAILED = 2; // the error will be reported in the error string
JOB_STATUS_TRY_LATER = 3; // when the cluster has other snapshots in progress
JOB_STATUS_RUNNING = 4;
JOB_STATUS_DONE = 5;
}
message CreateTableSnapshotResponse {
string job_id = 1;
JobStatus status = 2;
string error = 3;
}
message CheckJobStatusRequest {
string job_id = 1;
}
message CheckJobStatusResponse {
JobStatus status = 1;
string error = 2;
}
//////////////////////////////////////////////////
message SegmentInfo {
Segment segment = 1;