-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): increase timeout for AcmCertificateImporter #464
Conversation
yarn.lock
Outdated
@@ -507,6 +507,13 @@ | |||
"@aws-cdk/region-info" "1.106.1" | |||
constructs "^3.3.69" | |||
|
|||
"@aws-cdk/aws-imagebuilder@1.106.1": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the change to add the imagebuilder example didn't include an update to the yarn.lock
// component of backoff fixed to ensure minimum total wait time on | ||
// slow targets. | ||
const base = Math.pow(2, attempt); | ||
await defaultSleep(Math.random() * base * 50 + base * 150); | ||
const backoffDelay = Math.floor(Math.random() * base * 200 + base * 1000 - 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've increased the delay from a base of 200ms. I figure we're waiting for the ACM service here to update the certificate; possibly also waiting for the ALB to signal that it's no longer using it as well.
So, rather than waiting (max): 0.2s, 0.35s, 0.65s, 1.250s, 2.45s, 4.85s, 9.65s, 19.25s (which won't finish due to 30s lambda timeout)
It might make more sense to wait longer, but cap out the delay (max) 1.1s, 2.1s, 4.1s, 8.1s, 16.1s, 30s, 30s, ....
3f03beb
to
faa3ebf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good to me! Thanks Daniel for the fix.
Fixes: #463
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license