projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
16739: implement review feedback.
[arvados.git]
/
lib
/
dispatchcloud
/
worker
/
throttle.go
diff --git
a/lib/dispatchcloud/worker/throttle.go
b/lib/dispatchcloud/worker/throttle.go
index defbf91ff38390d22062aa03d1f3f34149428e27..5374afb44fccb0408e26039a8c53b1bfa1f8481d 100644
(file)
--- a/
lib/dispatchcloud/worker/throttle.go
+++ b/
lib/dispatchcloud/worker/throttle.go
@@
-61,6
+61,12
@@
func (thr *throttle) Error() error {
return thr.err
}
+func (thr *throttle) ResetError() {
+ thr.mtx.Lock()
+ defer thr.mtx.Unlock()
+ thr.err = nil
+}
+
type throttledInstanceSet struct {
cloud.InstanceSet
throttleCreate throttle