Checking previously ignored error which caused issues.

This commit is contained in:
Renan DelValle 2020-05-27 12:41:15 -07:00
parent 5ec22fab98
commit 4af6ae2ed4
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -78,8 +78,11 @@ func (m *Monitor) JobUpdateStatus(updateKey aurora.JobUpdateKey,
UpdateStatuses: desiredStatuses,
}
summary, err := m.JobUpdateQuery(updateQ, interval, timeout)
if err != nil {
return 0, err
}
return summary[0].State.Status, err
return summary[0].State.Status, nil
}
// JobUpdateQuery polls the scheduler every certain amount of time to see if the query call returns any results.