17529: Heed MaxCloudOpsPerSecond when calling SetTags.
authorTom Clegg <tom@curii.com>
Thu, 15 Apr 2021 18:03:13 +0000 (14:03 -0400)
committerTom 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

index fe498d0484b0d41a0ceb0428aafc68a879033cc6..462c3683f92c474fb621e61604f17ff7d9ca553c 100644 (file)
@@ -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