File tree 1 file changed +10
-7
lines changed 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,16 @@ GtAwsAutoScalingGroupManager >> waitForDescription [
96
96
" Answer the receiver's description, waiting if it isn't yet available."
97
97
| maxRetries retryCount delay description |
98
98
99
- maxRetries := 9 .
100
- delay := 1 second.
101
- retryCount := 0 .
102
- [ description := self description.
103
- description isNil and : [ retryCount <= maxRetries ]. ] whileTrue:
104
- [ retryCount := retryCount + 1 .
105
- delay wait. ].
99
+ descriptionCache isStale ifTrue:
100
+ [ maxRetries := 9 .
101
+ delay := 1 second.
102
+ retryCount := 0 .
103
+
104
+ descriptionCache keepAlive.
105
+ [ descriptionCache isStale and : [ retryCount <= maxRetries ]. ] whileTrue:
106
+ [ retryCount := retryCount + 1 .
107
+ delay wait. ] ].
108
+ description := self description.
106
109
description ifNil:
107
110
[ self error: ' Unable to retrieve description' ].
108
111
^ description
You can’t perform that action at this time.
0 commit comments