Changing MonitorJobUpdate to use MOnitorJobUpdateStatus under the hood.

This commit is contained in:
Renan DelValle 2019-09-10 17:56:31 -07:00 committed by Renan DelValle
parent 6f20f5b62f
commit 9584266b71
2 changed files with 45 additions and 53 deletions

View file

@ -28,6 +28,19 @@ func IsTimeout(err error) bool {
return ok && temp.Timedout()
}
type timeoutErr struct {
error
timedout bool
}
func (r *timeoutErr) Timedout() bool {
return r.timedout
}
func newTimedoutError(err error) *timeoutErr {
return &timeoutErr{error: err, timedout: true}
}
// retryErr is a superset of timeout which includes extra context
// with regards to our retry mechanism. This is done in order to make sure
// that our retry mechanism works as expected through our tests and should