Skip to content

Commit

Permalink
feat: add replay endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mauliksoneji committed Jun 29, 2021
1 parent f3d9ea8 commit 011b791
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions odpf/optimus/runtime_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,16 @@ service RuntimeService {
body: "*"
};
}
rpc ReplayDryRun(ReplayDryRunRequest) returns (ReplayDryRunResponse) {
rpc ReplayDryRun(ReplayRequest) returns (ReplayDryRunResponse) {
option (google.api.http) = {
get: "/api/v1/project/{project_name}/job/{job_name}/replay-dry-run"
};
}
rpc Replay(ReplayRequest) returns (ReplayResponse) {
option (google.api.http) = {
get: "/api/v1/project/{project_name}/job/{job_name}/replay"
};
}
// TODO(kush.sharma): disabled ATM
//rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {}

Expand Down Expand Up @@ -559,7 +564,7 @@ message UpdateResourceResponse {
string message = 2;
}

message ReplayDryRunRequest {
message ReplayRequest {
string project_name = 1;
string job_name = 2;
string namespace = 3;
Expand All @@ -577,3 +582,7 @@ message ReplayExecutionTreeNode {
repeated ReplayExecutionTreeNode dependents = 2;
repeated google.protobuf.Timestamp runs = 3;
}

message ReplayResponse {
string id = 1;
}

0 comments on commit 011b791

Please sign in to comment.