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

fix: add Get latest job runs API #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mryashbhardwaj
Copy link
Member

No description provided.

@@ -40,6 +40,12 @@ service JobRunService {
get: "/v1beta1/project/{project_name}/job/{job_name}/run"
};
}
// JobRunList returns the current and past run status of jobs on a given range
rpc GetLatestJobRuns(GetLatestJobRunsRequest) returns (GetLatestJobRunsResponse) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking of keeping the number of rpc methods to less by merging the scope of this rpc method with the existing rpc method to get jobruns, should we look into where all we are using the existing method & try to unify them instead.

@Mryashbhardwaj
Copy link
Member Author

We shall add a new api GetLatestJobRuns
get: "/v1beta1/project/{project_name}/job/{job_name}/job_runs"

which shall have filters

  1. status (Optional)
  2. start_date and end_date (Optional)

In absence of the filters the API will respond with status info of a single latest run(by schedule).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants