Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(optimus): add GetDeployJobsStatus #132

Merged
merged 5 commits into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions odpf/optimus/core/v1beta1/job_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ service JobSpecificationService {

// RefreshJobs do redeployment using the current persisted state.
// It will returns a stream of messages which can be used to track the progress.
// Message containing ack are status events other are progress events
rpc RefreshJobs(RefreshJobsRequest) returns (stream RefreshJobsResponse) {}

// GetDeployJobsStatus check status of job deployment.
// It will returns status of the job deployment and the failure details.
rpc GetDeployJobsStatus(GetDeployJobsStatusRequest) returns (GetDeployJobsStatusResponse) {}
}

message DeployJobSpecificationRequest {
Expand Down Expand Up @@ -276,7 +279,24 @@ message RefreshJobsResponse {

// response type differentiate events
string type = 2;
string message = 3;
string value = 3;
sravankorumilli marked this conversation as resolved.
Show resolved Hide resolved

string job_name = 4;
}

message GetDeployJobsStatusRequest {
string deploy_id = 1;
}

message GetDeployJobsStatusResponse {
string status = 1;

repeated DeployJobFailure failures = 2;
int32 success_count = 3;
int32 failure_count = 4;
}

message DeployJobFailure {
string job_name = 1;
string message = 2;
}