diff --git a/odpf/optimus/runtime_service.proto b/odpf/optimus/runtime_service.proto index 7f895060..811150de 100644 --- a/odpf/optimus/runtime_service.proto +++ b/odpf/optimus/runtime_service.proto @@ -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) = { + post: "/api/v1/project/{project_name}/job/{job_name}/replay" + }; + } // TODO(kush.sharma): disabled ATM //rpc DeleteResource(DeleteResourceRequest) returns (DeleteResourceResponse) {} @@ -559,7 +564,7 @@ message UpdateResourceResponse { string message = 2; } -message ReplayDryRunRequest { +message ReplayRequest { string project_name = 1; string job_name = 2; string namespace = 3; @@ -577,3 +582,7 @@ message ReplayExecutionTreeNode { repeated ReplayExecutionTreeNode dependents = 2; repeated google.protobuf.Timestamp runs = 3; } + +message ReplayResponse { + string id = 1; +}