projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff11506
)
17529: Heed MaxCloudOpsPerSecond when calling SetTags.
author
Tom Clegg <tom@curii.com>
Thu, 15 Apr 2021 18:03:13 +0000
(14:03 -0400)
committer
Tom Clegg <tom@curii.com>
Thu, 15 Apr 2021 18:03:13 +0000
(14:03 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/dispatchcloud/driver.go
patch
|
blob
|
history
diff --git
a/lib/dispatchcloud/driver.go
b/lib/dispatchcloud/driver.go
index fe498d0484b0d41a0ceb0428aafc68a879033cc6..462c3683f92c474fb621e61604f17ff7d9ca553c 100644
(file)
--- a/
lib/dispatchcloud/driver.go
+++ b/
lib/dispatchcloud/driver.go
@@
-71,6
+71,11
@@
func (inst *rateLimitedInstance) Destroy() error {
return inst.Instance.Destroy()
}
+func (inst *rateLimitedInstance) SetTags(tags cloud.InstanceTags) error {
+ <-inst.ticker.C
+ return inst.Instance.SetTags(tags)
+}
+
// Adds the specified defaultTags to every Create() call.
type defaultTaggingInstanceSet struct {
cloud.InstanceSet