Checking previously ignored error which caused issues. (#123)

Error in monitor was going unchecked which caused some issues when the monitor timed out.
This commit is contained in:
Renán I. Del Valle 2020-05-27 12:45:53 -07:00 committed by GitHub
parent 5ec22fab98
commit 2b6025e67d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.