add GetJobSummary API
This commit is contained in:
parent
364ee93202
commit
8dab606316
1 changed files with 13 additions and 0 deletions
13
realis.go
13
realis.go
|
@ -348,6 +348,19 @@ func (c *Client) GetJobUpdateSummaries(jobUpdateQuery *aurora.JobUpdateQuery) (*
|
||||||
return resp.GetResult_().GetGetJobUpdateSummariesResult_(), nil
|
return resp.GetResult_().GetGetJobUpdateSummariesResult_(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) GetJobSummary(role string) (*aurora.JobSummaryResult_, error) {
|
||||||
|
|
||||||
|
resp, retryErr := c.thriftCallWithRetries(false, func() (*aurora.Response, error) {
|
||||||
|
return c.readonlyClient.GetJobSummary(context.TODO(), role)
|
||||||
|
})
|
||||||
|
|
||||||
|
if retryErr != nil {
|
||||||
|
return nil, errors.Wrap(retryErr, "error getting job summaries from Aurora Scheduler")
|
||||||
|
}
|
||||||
|
|
||||||
|
return resp.GetResult_().GetJobSummaryResult_(), nil
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) GetJobs(role string) (*aurora.GetJobsResult_, error) {
|
func (c *Client) GetJobs(role string) (*aurora.GetJobsResult_, error) {
|
||||||
|
|
||||||
var result *aurora.GetJobsResult_
|
var result *aurora.GetJobsResult_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue