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): fetch JobRuns for given date range #107

Merged
merged 5 commits into from
Mar 24, 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
25 changes: 25 additions & 0 deletions odpf/optimus/core/v1beta1/runtime.proto
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ service RuntimeService {
get: "/v1beta1/project/{project_name}/job/{job_name}/status"
};
}

// JobRun returns the current and past run status of jobs on a given range
rpc JobRun(JobRunRequest) returns (JobRunResponse) {
option (google.api.http) = {
get: "/v1beta1/project/{project_name}/job/{job_name}/run"
};
}

// RegisterJobEvent notifies optimus service about an event related to job
rpc RegisterJobEvent(RegisterJobEventRequest) returns (RegisterJobEventResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -670,6 +678,23 @@ message JobStatusResponse {
repeated JobStatus statuses = 1;
}

message JobRunRequest {
string project_name = 1;
string job_name = 2;
google.protobuf.Timestamp start_date = 3;
google.protobuf.Timestamp end_date = 4;
repeated string filter = 5;
}

message JobRunResponse {
repeated JobRun job_runs = 1;
}

message JobRun {
string state = 1;
google.protobuf.Timestamp scheduled_at = 2;
}

message GetWindowRequest {
google.protobuf.Timestamp scheduled_at = 1;
string size = 2;
Expand Down