Skip to content

Commit 011b791

Browse files
committed
feat: add replay endpoint
1 parent f3d9ea8 commit 011b791

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

odpf/optimus/runtime_service.proto

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,16 @@ service RuntimeService {
169169
body: "*"
170170
};
171171
}
172-
rpc ReplayDryRun(ReplayDryRunRequest) returns (ReplayDryRunResponse) {
172+
rpc ReplayDryRun(ReplayRequest) returns (ReplayDryRunResponse) {
173173
option (google.api.http) = {
174174
get: "/api/v1/project/{project_name}/job/{job_name}/replay-dry-run"
175175
};
176176
}
177+
rpc Replay(ReplayRequest) returns (ReplayResponse) {
178+
option (google.api.http) = {
179+
get: "/api/v1/project/{project_name}/job/{job_name}/replay"
180+
};
181+
}
177182
// TODO(kush.sharma): disabled ATM
178183
//rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {}
179184

@@ -559,7 +564,7 @@ message UpdateResourceResponse {
559564
string message = 2;
560565
}
561566

562-
message ReplayDryRunRequest {
567+
message ReplayRequest {
563568
string project_name = 1;
564569
string job_name = 2;
565570
string namespace = 3;
@@ -577,3 +582,7 @@ message ReplayExecutionTreeNode {
577582
repeated ReplayExecutionTreeNode dependents = 2;
578583
repeated google.protobuf.Timestamp runs = 3;
579584
}
585+
586+
message ReplayResponse {
587+
string id = 1;
588+
}

0 commit comments

Comments
 (0)