Reverting changes in monitors.
This commit is contained in:
parent
7063967549
commit
d7539783b0
1 changed files with 4 additions and 1 deletions
|
@ -96,14 +96,17 @@ func (m *Monitor) JobUpdateQuery(
|
||||||
timer := time.NewTimer(timeout)
|
timer := time.NewTimer(timeout)
|
||||||
defer timer.Stop()
|
defer timer.Stop()
|
||||||
|
|
||||||
|
var cliErr error
|
||||||
|
var respDetail *aurora.Response
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
updateSummaries, cliErr := m.Client.GetJobUpdateSummaries(&updateQuery)
|
respDetail, cliErr = m.Client.GetJobUpdateSummaries(&updateQuery)
|
||||||
if cliErr != nil {
|
if cliErr != nil {
|
||||||
return nil, cliErr
|
return nil, cliErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateSummaries := respDetail.Result_.GetJobUpdateSummariesResult_.UpdateSummaries
|
||||||
if len(updateSummaries) >= 1 {
|
if len(updateSummaries) >= 1 {
|
||||||
return updateSummaries, nil
|
return updateSummaries, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue