Skip to content

Commit

Permalink
feat(optimus): add replay dry-run option (goto#35)
Browse files Browse the repository at this point in the history
* feat: add replay dry-run option

* refactor: use new request for dryrun replay
  • Loading branch information
deryrahman committed Jul 5, 2023
1 parent 5f55bab commit b390e2b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gotocompany/optimus/core/v1beta1/replay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ service ReplayService {
body: "*"
};
}
rpc ReplayDryRun(ReplayDryRunRequest) returns (ReplayDryRunResponse) {
option (google.api.http) = {
post: "/v1beta1/project/{project_name}/replay-dry-run"
body: "*"
};
}
rpc ListReplay(ListReplayRequest) returns (ListReplayResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/replay"
Expand Down Expand Up @@ -76,6 +82,10 @@ message ReplayRun {
string status = 2;
}

message ReplayDryRunResponse {
repeated ReplayRun replay_runs = 1;
}

message ReplayRequest {
string project_name = 1;
string job_name = 2;
Expand All @@ -87,6 +97,17 @@ message ReplayRequest {
string job_config = 8;
}

message ReplayDryRunRequest {
string project_name = 1;
string job_name = 2;
string namespace_name = 3;
google.protobuf.Timestamp start_time = 4;
google.protobuf.Timestamp end_time = 5;
bool parallel = 6;
string description = 7;
string job_config = 8;
}

message ReplayResponse {
string id = 1;
}

0 comments on commit b390e2b

Please sign in to comment.